From 0cf2435c5601acfdb1603cfad594fa8cfb3a79db Mon Sep 17 00:00:00 2001 From: eshcherb <33529668+eshcherb@users.noreply.github.com> Date: Sat, 11 Jan 2020 05:32:22 -0600 Subject: [PATCH] Update roctracer_spec.md [ROCm/roctracer commit: 9b6d20eca2c6495ce93faa11ea77fd42dfce9064] --- projects/roctracer/doc/roctracer_spec.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/projects/roctracer/doc/roctracer_spec.md b/projects/roctracer/doc/roctracer_spec.md index 01a489f007..a0f42b658c 100644 --- a/projects/roctracer/doc/roctracer_spec.md +++ b/projects/roctracer/doc/roctracer_spec.md @@ -728,3 +728,18 @@ void stop_tracing() { } ///////////////////////////////////////////////////////////////////////////// ``` +'rocTX' application code annotation +``` +Basic API: markers and nested ranges. +// A marker created by given ASCII massage +void roctxMark(const char* message); + +// Returns the 0 based level of a nested range being started by given message associated to this range. +// A negative value is returned on the error. +int roctxRangePush(const char* message); + +// Marks the end of a nested range. +// Returns the 0 based level the range. +// A negative value is returned on the error. +int roctxRangePop(); +```