Skip to content

Commit

Permalink
improve Triton profiler (#191)
Browse files Browse the repository at this point in the history
- add profiling of categories
- introduce more weights for relative runtime costs
- print relative time for all tasks and sub-tasks

The usual `prof_start!(…)` macro can be used as before. The same macro
now accepts an additional argument, a category: calling
`prof_start!(profiler, "task name", "category")`
will accumulate the times of all tasks with the same category and print
additional reports for the categories. For example:

```markdown
hash    84.60ms  8.88%
AIR     80.87ms  8.48%
cc     485.42ms 50.93%
LDE    165.70ms 17.38%
```
  • Loading branch information
jan-ferdinand committed Apr 20, 2023
2 parents 0dab32a + 30aeabd commit 7edd1a2
Showing 1 changed file with 220 additions and 55 deletions.
Loading

0 comments on commit 7edd1a2

Please sign in to comment.