ROCm / roctracer

ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs
https://rocm.docs.amd.com/projects/roctracer/en/latest/
Other
69 stars 30 forks source link

Fix memory leak in roctxRangePushA #75

Open MrBurmark opened 2 years ago

MrBurmark commented 2 years ago

Do not strdup message when pushing to stack of std::strings. Use emplace to avoid unnecessary std::string moves/copies.

MrBurmark commented 2 years ago

Is the api_data message freed in the callback? Does it need to be strdup'd in the first place?