gcpy.profile.vtune_utils
Utilities for displaying reports generated by the Intel VTune profiler.
Functions
|
Ask user if they wish to display more lines of VTune information to the screen, or if they wish to quit. |
|
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information. |
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information. |
|
|
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information. |
|
Searches for a hotspot by name in a DataFrame column, Returns the relevant row of the DataFrame if found. |
|
Computes timing information for a hotspot from two reports and returns a string for display. |
|
Determines how a VTune hotspot report is grouped. |
|
Reads a hotspots report (in CSV format) generated by the Intel VTune profiler, and calls the proper function to display the results. |
Lists hotspots from an Intel VTune hotspot report that has been grouped by function. |
|
|
Lists hotspots from an Intel VTune hotspot report that has been grouped by source code line. |
|
Reads a hotspot report (in CSV format) generated by Intel VTune. |
- gcpy.profile.vtune_utils.vtune_read_hotspots_csv(filename, delimiter='\t')[source]
Reads a hotspot report (in CSV format) generated by Intel VTune.
- Parameters:
- Returns:
report – DataFrame with hotspot information.
- Return type:
- gcpy.profile.vtune_utils.vtune_how_is_report_grouped(report)[source]
Determines how a VTune hotspot report is grouped.
- Parameters:
report (
pandas.DataFrame) – Hotspot report data.- Returns:
result – Returns ‘by_line’ or ‘by_function’.
- Return type:
- gcpy.profile.vtune_utils.vtune_ask_user_to_continue_or_quit(header, linecount, lines_per_screen)[source]
Ask user if they wish to display more lines of VTune information to the screen, or if they wish to quit.
- gcpy.profile.vtune_utils.vtune_list_all_hotspots_by_line(report, lines_per_screen=30)[source]
Lists hotspots from an Intel VTune hotspot report that has been grouped by source code line.
- Parameters:
report (
pandas.DataFrame) – Hotspot report from Intel VTune.lines_per_screen (
int, optional) – Pause after showing these many lines. Default value: LINES_PER_SCREEN
- gcpy.profile.vtune_utils.vtune_list_all_hotspots_by_function(report, lines_per_screen=30)[source]
Lists hotspots from an Intel VTune hotspot report that has been grouped by function.
- Parameters:
report (
pandas.DataFrame) – Hotspot information data.lines_per_screen (
int, optional) – Pause after showing these many lines. Default value: LINES_PER_SCREEN
- gcpy.profile.vtune_utils.vtune_list_all_hotspots(filename, delimiter='\t', lines_per_screen=30)[source]
Reads a hotspots report (in CSV format) generated by the Intel VTune profiler, and calls the proper function to display the results.
- gcpy.profile.vtune_utils.vtune_get_timing_info(ref_time, dev_time)[source]
Computes timing information for a hotspot from two reports and returns a string for display.
- gcpy.profile.vtune_utils.vtune_find_hotspot(report, column, hotspot_name)[source]
Searches for a hotspot by name in a DataFrame column, Returns the relevant row of the DataFrame if found.
- Parameters:
report (
pandas.DataFrame) – Hotspot report from Intel VTune.column (
str) – Column to search.hotspot_name (
str) – Name of the hotspot to look for.
- Returns:
result – Modified DataFrame object.
- Return type:
- gcpy.profile.vtune_utils.vtune_compare_a_hotspot_by_line(ref_report, ref_label, dev_report, dev_label, hotspot_name, ref_line_number=None, dev_line_number=None)[source]
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information.
- Parameters:
ref_report (
pandas.DataFrame) – Hotspot report from the Ref model.ref_label (
str) – Label for the Ref model.dev_report (
pandas.DataFrame) – Hotspot report from the Dev model.dev_label (
str) – Label for the Dev model.hotspot_name (
str) – Name of the hotspot to search for.ref_line_number (
strorintorNone, optional) – Line number where hotspot occurs in Ref. Default value: Nonedev_line_number (
strorintorNone, optional) – Line number where hotspot occurs in Dev. Default value: None
- gcpy.profile.vtune_utils.vtune_compare_a_hotspot_by_function(ref_report, ref_label, dev_report, dev_label, hotspot_name)[source]
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information.
- Parameters:
ref_report (
pandas.DataFrame) – Hotspot report from the Ref model.ref_label (
str) – Label for the Ref model.dev_report (
pandas.DataFrame) – Hotspot report from the Dev model.dev_label (
str) – Label for the Dev model.hotspot_name (
str) – Name of the hotspot to search for.
- gcpy.profile.vtune_utils.vtune_compare_a_hotspot(ref_file, ref_label, dev_file, dev_label, hotspot_name, delimiter='\t', ref_line_number=None, dev_line_number=None)[source]
Compares a given hotspot in two different reports (grouped by source code line), and prints timing information.
- Parameters:
ref_file (
str) – Hotspot report from the Ref model.ref_label (
str) – Label for the Ref model.dev_file (
str) – Hotspot report from the Dev model.dev_label (
str) – Label for the Dev model.hotspot_name (
str) – Name of the hotspot to search for.delimiter (
str, optional) – Text separator. Default value: “t” (tab)ref_line_number (
strorintorNone, optional) – Line number where hotspot occurs in Ref. Default value: Nonedev_line_number (
strorintorNone, optional) – Line number where hotspot occurs in Dev. Default value: None