Trace counters aren't present in timeline
Hello world,
I'm trying to monitor memory usage with trace counters. I'm following this sample: https://github.com/google/perfetto/blob/0fbd3808d530f8c85568a4b8e9975756ecffa4bd/examples/sdk/example.cc#L87-L97
Application starts and works fine, tracing session starts and stop without any errors or exceptions.
But for some reason, no trace counters are presented in JSON file I obtain from traceconv.
Basically, the timeline I see is similar to the example: https://github.com/google/perfetto/blob/main/examples/sdk/example.png
There are plenty of trace events, but no trace counters. Any help is much appreciated!
Hi!
If you open the trace in the UI before using traceconv (.pb or .perfetto_trace) can you see trace counters? Our JSON support is best effort so it might be related to losing some data in the conversion.
On Tue, May 28, 2024 at 10:09 AM Roman Arzumanyan @.***> wrote:
Hello world,
I'm trying to monitor memory usage with trace counters. I'm following this sample:
https://github.com/google/perfetto/blob/0fbd3808d530f8c85568a4b8e9975756ecffa4bd/examples/sdk/example.cc#L87-L97
Application starts and works fine, tracing session starts and stop without any errors or exceptions. But for some reason, no trace counters are presented in JSON file I obtain from traceconv.
Basically, the timeline I see is similar to the example: https://github.com/google/perfetto/blob/main/examples/sdk/example.png
There are plenty of trace events, but no trace counters. Any help is much appreciated!
— Reply to this email directly, view it on GitHub https://github.com/google/perfetto/issues/803, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ3CHTTXMVY3P37KV6BGTP3ZERCVNAVCNFSM6AAAAABIMP3266VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDANJTGQ2DKOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi @aMayzner
I've opened the binary trace file and it does solve the problem. Can see all my counters there. Thanks a lot for the help!