hexrd.utils.profiler module

Functions helping instrumented profiling of scripts

This functions provide functionality to easily add instrumented profiling of certain functions. The functions to instrument will be provided by a yaml file containing the name of the function with its full dot path.

hexrd.utils.profiler.dump_results(args)[source]
hexrd.utils.profiler.instrument_all(filenames)[source]

Instrument functions based on a list of profiler configuration files.

hexrd.utils.profiler.instrument_function(fn_desc)[source]

Interpret a record for an instrumented function, and instrument accordingly. The record, fn_desc, contains:

‘fn’ is the full path to the function ‘color’ is the color to use when instrumenting (nvtx feature)

hexrd.utils.profiler.parse_file(filename)[source]

Parse a file and instrument the associated functions