-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9956: Include and process trace activity in tracy
- Loading branch information
1 parent
064f80b
commit b76a20f
Showing
4 changed files
with
139 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#if defined(TRACY_ENABLE) | ||
|
||
#define TracyTTMetalBeginTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_BEGIN: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalEndTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_END: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalReplayTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_REPLAY: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalReleaseTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_RELEASE: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
#else | ||
|
||
#define TracyTTMetalBeginTrace( device_id, trace_id ) | ||
#define TracyTTMetalEndTrace( device_id, trace_id ) | ||
#define TracyTTMetalReplayTrace( device_id, trace_id ) | ||
#define TracyTTMetalRelkaseTrace( device_id, trace_id ) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters