GPUOpen-Tools / gpu_performance_api

GPU Performance API for AMD GPUs
MIT License
251 stars 46 forks source link

Various improvements to GPA's logging facility #71

Closed jcortell68 closed 1 year ago

jcortell68 commented 1 year ago
  1. LogDebugXxxxx() methods are variadic printf based functions, but LogXxxxx() methods are not. Upgraded the latter for consistency and to make it easier to log dynamic non-debug messages

  2. The LogDebugXxxxx() methods could trash memory. Should use vsnprintf instead of vsprintf.

  3. The LogDebugXxxxx() methods had a lot of redundant/common logic.