Expose usage table for api

This commit is contained in:
Joey Yakimowich-Payne 2020-02-09 21:00:49 -07:00
commit 78cf369b6b

View file

@ -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: