Expose usage table for api
This commit is contained in:
parent
8cfe0c7a14
commit
78cf369b6b
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ proc logUsage(filename: string, line: int) =
|
|||
|
||||
######################## User API ################################
|
||||
|
||||
proc getUsageTable*(): TableRef[string, TableRef[int, int]] =
|
||||
return UsageTable
|
||||
|
||||
proc printCodeUsage*() =
|
||||
## Prints usage for all code paths
|
||||
for filename, lineTable in UsageTable.pairs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue