This is an archive of the discontinued LLVM Phabricator instance.

[lldb][trace] Add a basic function call dump [3] - Add a JSON dumper
ClosedPublic

Authored by wallace on Oct 15 2022, 10:53 PM.

Details

Summary

The JSON dumper is very minimalistic. It pretty much only shows the
delimiting instruction IDs of every segment, so that further queries to
the SBCursor can be used to make sense of the data. It's main purpose is
to be serialized somewhat cheaply.

I also renamed untracedSegment to untracedPrefixSegment, in case in the
future we add an untracedSuffixSegment. In any case, this new name is
more explicit, which I like.

Diff Detail

Event Timeline

wallace created this revision.Oct 15 2022, 10:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 10:53 PM
wallace requested review of this revision.Oct 15 2022, 10:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 10:53 PM
jj10306 accepted this revision.Oct 17 2022, 6:06 PM

nice! using this in conjunction with trace cursor we'll be able to produce some nice visualizations - lgtm

This revision is now accepted and ready to land.Oct 17 2022, 6:06 PM
This revision was landed with ongoing or failed builds.Oct 18 2022, 1:58 PM
This revision was automatically updated to reflect the committed changes.