Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Communicating with the pages in a CPropertySheet Pin
Larry Mills Sr9-Nov-09 4:46
Larry Mills Sr9-Nov-09 4:46 
QuestionUtterly lost about ETW. Pin
i_kant_spel8-Nov-09 6:28
i_kant_spel8-Nov-09 6:28 
QuestionRe: Utterly lost about ETW. Pin
David Crow9-Nov-09 3:14
David Crow9-Nov-09 3:14 
AnswerRe: Utterly lost about ETW. Pin
i_kant_spel9-Nov-09 5:10
i_kant_spel9-Nov-09 5:10 
QuestionRe: Utterly lost about ETW. Pin
David Crow9-Nov-09 5:41
David Crow9-Nov-09 5:41 
AnswerRe: Utterly lost about ETW. Pin
i_kant_spel9-Nov-09 6:20
i_kant_spel9-Nov-09 6:20 
QuestionRe: Utterly lost about ETW. [modified] Pin
David Crow9-Nov-09 6:23
David Crow9-Nov-09 6:23 
AnswerRe: Utterly lost about ETW. Pin
i_kant_spel9-Nov-09 16:08
i_kant_spel9-Nov-09 16:08 
Thanks for that link. I did see that page before, but somehow I never noticed Using Events to Calculate CPU Usage [^] in that reference until just now, which is pretty much exactly what I thought would help.

So I got that code, and I'm trying to run it, but I don't quite understand how it's supposed to work. I made an .etl file using xperf, which contains some data on CPU sampling. And I altered the code so that LOGFILE_PATH points to that file.

Now, what it seems like it's doing is it calls ProcessEvent many times, but each time, in order for something useful to happen, IsEqualGUID(CpuUsageEvent, pEvent->Header.Guid) must return true. CpuUsageEvent is a static const, generated using VS2K8 tools. But pEvent->Header.GuidHeader.Guid seems to always return a value from a fixed set of possible GUIDs. These NEVER match the generated CpuUsageEvent, so ProcessEvent never does anything useful.

What am I doing wrong here?

Also, does ETW *have* to read from a log file? Maybe I don't know what I'm talking about, but it seems like being able to capture events and save them directly to a struct or object would be a lot more useful than dumping the data to a log and then immediately parse it afterwards.
Questionpopup menus Pin
doug258-Nov-09 3:23
doug258-Nov-09 3:23 
AnswerRe: popup menus Pin
Richard MacCutchan8-Nov-09 6:24
mveRichard MacCutchan8-Nov-09 6:24 
AnswerRe: popup menus Pin
Chris Losinger8-Nov-09 16:21
professionalChris Losinger8-Nov-09 16:21 
GeneralRe: popup menus Pin
doug259-Nov-09 23:06
doug259-Nov-09 23:06 
GeneralRe: popup menus Pin
doug2510-Nov-09 0:00
doug2510-Nov-09 0:00 
GeneralRe: popup menus Pin
doug2510-Nov-09 1:02
doug2510-Nov-09 1:02 
QuestionA very hard question? friend function again! Pin
wanchao5078-Nov-09 2:48
wanchao5078-Nov-09 2:48 
AnswerRe: A very hard question? friend function again! Pin
CPallini8-Nov-09 5:13
mveCPallini8-Nov-09 5:13 
AnswerRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 6:07
N a v a n e e t h8-Nov-09 6:07 
GeneralRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:29
wanchao5078-Nov-09 16:29 
GeneralRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 19:37
N a v a n e e t h8-Nov-09 19:37 
AnswerRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:10
wanchao5078-Nov-09 16:10 
QuestionStatic variable Pin
kumar sanghvi8-Nov-09 1:39
kumar sanghvi8-Nov-09 1:39 
AnswerRe: Static variable Pin
Richard MacCutchan8-Nov-09 2:13
mveRichard MacCutchan8-Nov-09 2:13 
QuestionWeird situation with WinSock Pin
hxhl957-Nov-09 19:19
hxhl957-Nov-09 19:19 
AnswerRe: Weird situation with WinSock Pin
Code-o-mat8-Nov-09 0:01
Code-o-mat8-Nov-09 0:01 
GeneralRe: Weird situation with WinSock Pin
hxhl958-Nov-09 6:41
hxhl958-Nov-09 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.