Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.36

Profiler Export

Profiled data can optionally be exported to various formats:

 

 

 

Exporting Profiler data

Press Export ProfilerAnalysis-ExportButton   in the Profiler Timeline window toolbar to launch the Export dialog.

 

Profiler-export

1. Select the desired export options:

  • File - Specifies the file path to which the data is exported.
  • Format - Specifies the export format. Click Options button to configure format specific settings.
  • Launch Associated Viewer - If checked, the system associated viewer application is launched after export.

 

2.  Press Export.

 

 

Information

ProfilerExportInformation

Statistics - Exports statistic information for every area:

  • Total time spent in the area
  • Number of activations
  • Percentage of the time spent in the area vs. total profiler session time
  • Minimum, maximum and average activation time (net, gross and call times)
  • Minimum, maximum and average time between consecutive activations (period)

 

Timeline - Exports timeline information for every area:

  • Data and AUX areas: time and value written
  • Functions: time and state of the area (active + nesting level)

 

The time range for timeline export can be:
- Entire session - Exports all recorded events.
- Between markers - Exports only events between the two markers; if the markers are not set, this option is not available.

 

info-icon

Time range selection is available only for Text1 and XML formats. CSV and Text formats export all events.

 

 

Areas

Defines which area types will be exported.

 

ProfilerExportAreas

Selection - Exports only area currently selected in the Profiler window.

All - Exports all areas.

Filter - Exports only areas which match the specified filter wildcard pattern. This option is available only for the Text1 and XML formats.

    • Data - If checked, Data areas are exported.
    • AUX - If checked, AUX areas are exported.
    • Functions - If checked, function areas are exported.

 

If Export Function Lines is checked, also the lines of functions are exported.

 

 

Context

Context selection is available if the Profiler session recorded context switches. The selection defines the context for which the Function statistic data is exported.

 

ProfilerExportContext

All - Statistics results for every context are exported individually.

Current - Same as All, but only results for the context which is currently viewed in the profiler window are exported.

Neutral - For statistics, results from all contexts are accumulated.

Export only active areas - Only areas with recorded activity will be exported. This option is available only for XML and Text1 export formats.

 

 

To facilitate understanding of differences depending on Context selection, consider this example:

 

void main
{
StartTask(TaskA, entryTaskA);
StartTask(TaskB, entryTaskB);
while (1);
}
void entryTaskA()
{
while (1)
{
f();
}
}
void entryTaskB()
{
while (1)
{
f();
g();
}
}

 

 

There are three contexts in this application:

  • Unknown – in which function main is executing.
  • TaskA – in which functions entryTaskA and f are executing.
  • TaskB – in which functions entryTaskB, g and f are executing.

 

Let’s assume 1000 executions of loop in entryTaskA and 500 in entryTaskB:

 

 

All

Statistics results for every context are exported individually.

 

<STATISTICS_EXEC>
<CLASS>Functions</CLASS>
<CONTEXT>TSK: Unknown</CONTEXT>
<AREA>
<NAME>main</NAME>
<COUNT>1</COUNT>
</AREA>
</STATISTICS_EXEC>
 
<STATISTICS_EXEC>
<CLASS>Functions</CLASS>
<CONTEXT>TSK: TaskA</CONTEXT>
<AREA>
<NAME>entryTaskA</NAME>
<COUNT>1</COUNT>
</AREA>
<AREA>
<NAME>f</NAME>
<COUNT>1000</COUNT>
</AREA>

</STATISTICS_EXEC>
 
<STATISTICS_EXEC>
<CLASS>Functions</CLASS>
<CONTEXT>TSK: TaskB</CONTEXT>
<AREA>
<NAME>entryTaskB</NAME>
<COUNT>1</COUNT>
</AREA>
<AREA>
<NAME>f</NAME>
<COUNT>500</COUNT>
</AREA>
<AREA>
<NAME>g</NAME>
<COUNT>500</COUNT>
</AREA>
</STATISTICS_EXEC>

 

 

Current

Same as All, but only results for the context which is currently viewed in the Profiler window are exported.

 

Neutral

For statistics, results from all contexts are accumulated.

 

 

<STATISTICS_EXEC>
<CLASS>Functions</CLASS>
<CONTEXT>Neutral</CONTEXT>
<AREA>
<NAME>main</NAME>
<COUNT>1</COUNT>
</AREA>
<AREA>
<NAME>entryTaskA</NAME>
<COUNT>1</COUNT>
</AREA>
<AREA>
<NAME>entryTaskB</NAME>
<COUNT>1</COUNT>
</AREA>
<AREA>
<NAME>f</NAME>
<COUNT>1500</COUNT>
</AREA>
<AREA>
<NAME>g</NAME>
<COUNT>500</COUNT>
</AREA>
</STATISTICS_EXEC>

 

 

Copyright© iSYSTEM AG Carl-Zeiss-Str.1 85247 Schwabhausen Germany