Skip to content

Commit

Permalink
Record QueryPerformanceFrequency
Browse files Browse the repository at this point in the history
The QPC (QueryPerformanceCounter) frequency is important when looking at
the potentially useful usercrit events. And, it reveals some details
about how the system is configured.

This fixes issue #132.
  • Loading branch information
randomascii committed Mar 12, 2019
1 parent 5db617a commit efc2e50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UIforETW/UIforETWDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,9 @@ void CUIforETWDlg::StopTracingAndMaybeRecord(bool bSaveTrace)
ETWMarkPrintf("Chrome ETW events were requested with keyword 0x%llx", chromeKeywords_);
// Record the entire xperf startup command to the trace.
ETWMarkWPrintf(L"Tracing startup command was: %s", startupCommand_.c_str());
LARGE_INTEGER frequency;
QueryPerformanceFrequency(&frequency);
ETWMarkWPrintf(L"QueryPerformanceFrequency is %1.3f MHz", frequency.QuadPart / 1e6);
}
if (bSaveTrace && tracingMode_ == kTracingToMemory)
{
Expand Down

0 comments on commit efc2e50

Please sign in to comment.