Skip to content

fprof tree walk time output option for seconds in fprof.py #67

@weloewe

Description

@weloewe

For cases where comparing expected time from a tree walk scan would be convenient to have in seconds, would it be possible to include the following option with a flag?

143a144,145
>     parser.add_argument("--showseconds", action="store_true",
>                         help="Display elapsed time in seconds")
621,622c623,628
<             print(fmt_msg2.format("Tree walk time:",
<                                   utils.conv_time(elapsed_time)))
---
>             if args.showseconds:
>                 print(fmt_msg2.format("Tree walk time (s):",
>                                       elapsed_time))
>             else:
>                 print(fmt_msg2.format("Tree walk time:",
>                                       utils.conv_time(elapsed_time)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions