This is an archive of the discontinued LLVM Phabricator instance.

[trace][intel pt] Measure the time it takes to decode a thread in per-cpu mode
ClosedPublic

Authored by wallace on Jul 6 2022, 11:05 PM.

Details

Summary

This metric was missing. We were only measuring in per-thread mode, and
this completes the work.

For a sample trace I have, the dump info command shows

Timing for this thread:
    Decoding instructions: 0.12s

I also improved a bit the TaskTime function so that callers don't need to
specify the template argument

Diff Detail

Event Timeline

wallace created this revision.Jul 6 2022, 11:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2022, 11:05 PM
wallace requested review of this revision.Jul 6 2022, 11:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2022, 11:05 PM
jj10306 accepted this revision.Jul 13 2022, 8:56 AM

lgtm

This revision is now accepted and ready to land.Jul 13 2022, 8:56 AM