Forums - Custom trace markers in SnapdraonProfiler

2 posts / 0 new
Last post
Custom trace markers in SnapdraonProfiler
pal.szasz
Join Date: 20 Jun 11
Posts: 4
Posted: Tue, 2018-05-15 07:28

Hi!

I would like to add custom trace markers into SnapdragonProfiler, so I can match the render stages in the trace to my code

* I tried using the glPushDebugGroup/glPopDebugGroup, but it seem to have no effect (I cannot see anywhere the labels I sent)

* I tried using the SDP_Markers.h library, but I cannot see the markers. When I select my processec, I cannot see the "Markers" category (as it was mentioned in the docs)

* I tried using the <android/trace.h> functionality, but again I cannot see the markers (I guess SnapdragonProfiler has a hardcoded list of trace categories, and the application specific is not one of them, since I enabled every category, yet I cannot see the markers)

What is the best approach to add custom markers?

Thank you in advance!

  • Up0
  • Down0
Carlos Dominguez Moderator
Join Date: 27 Jul 15
Location: San Diego
Posts: 110
Posted: Thu, 2018-05-31 10:31

Hi,

Native Tracing API <android/trace.h> will be supported on the next profiler release. In the meantime you can accomplish similar results writing directly into the trace buffer through /d/tracing/trace_marker. I'd recomment looking at documentation on the tracing_mark_write trace markers format which supports more than what you can get out of android/trace.h at the moment (async markers + counters). If you instrument your app writing directly to the trace buffer as mentioned above you won't need to enable any specific metric in Snapdragon Profiler and you can use any Trace metric(i.e. CPU Scheduling) to trigger a capture and your marker data should appear on UI. Sorry for the delayed response!

Carlos

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.