Repository navigation
Adding starting offset UUID for the timeline - #411
Conversation
| graph.add(comp, 'timeline', | ||
| params: { 'output_path' => $options[:'output-path'] }) | ||
| params: { 'output_path' => $options[:'output-path'], | ||
| 'offset' => $options[:'output-offset'] }) |
There was a problem hiding this comment.
what is this indentation?! My poor ocd!!! :p
There was a problem hiding this comment.
sorry! I updated it!
| static perfetto_uuid_t gen_perfetto_uuid(timeline_dispatch_t *dispatch) { | ||
| // Start at one, Look like UUID 0 is special | ||
| static std::atomic<perfetto_uuid_t> uuid{1}; | ||
| static std::atomic<perfetto_uuid_t> uuid{dispatch->start_uuid_index}; |
There was a problem hiding this comment.
I think we can remove the static for uuid and just put that atomic std::atomic<perfetto_uuid_t> uuid inside the dispatch, and in this function just do return uuid++; Will be cleaner IMO (and easy that now you did all the refactoring to pass dispatch 💪🏽 )
|
Thanks a lot! Just one minor suggestion, I can do it my self if you prefer. So I approve and let you merge depending on what you want to do : ) |
|
🎉 If you tried and sure it work, we can merge : ) But the CI is passing so I'm confident, but will be nice to open hte trace with perfetto just to be 110% sure |
|
Thanks a lot! |
This adds in a starting UUID as a first step in offsetting the UUIDs for the timeline by the hostname.
This adds
--output-offset OFFSETto babeltrace, with a default of 0, and then passes it to so that callinggen_perfetto_uuidwill start at a specific offset. In the future this will be for setting a different offset per hostname.