implemented a stack trace profiler
This commit is contained in:
parent
4a435a8fb4
commit
214c7a2ebd
11 changed files with 241 additions and 65 deletions
|
|
@ -11,6 +11,7 @@
|
|||
# TODO:
|
||||
# - eliminate "used" field
|
||||
# - make searching for block O(1)
|
||||
{.push profiler:off.}
|
||||
|
||||
# ------------ platform specific chunk allocation code -----------------------
|
||||
|
||||
|
|
@ -794,3 +795,4 @@ template InstantiateForRegion(allocator: expr) =
|
|||
else:
|
||||
result = realloc(p, newsize)
|
||||
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue