commit
52c456fee8
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ const
|
||||||
when withRealTime and not declared(getTicks):
|
when withRealTime and not declared(getTicks):
|
||||||
include "system/timers"
|
include "system/timers"
|
||||||
when defined(memProfiler):
|
when defined(memProfiler):
|
||||||
proc nimProfile(requestedSize: int)
|
proc nimProfile(requestedSize: int) {.benign.}
|
||||||
|
|
||||||
const
|
const
|
||||||
rcIncrement = 0b1000 # so that lowest 3 bits are not touched
|
rcIncrement = 0b1000 # so that lowest 3 bits are not touched
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ proc captureStackTrace(f: PFrame, st: var TStackTrace) =
|
||||||
|
|
||||||
when defined(memProfiler):
|
when defined(memProfiler):
|
||||||
type
|
type
|
||||||
TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall.}
|
TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall, benign.}
|
||||||
var
|
var
|
||||||
profilerHook*: TMemProfilerHook
|
profilerHook*: TMemProfilerHook
|
||||||
## set this variable to provide a procedure that implements a profiler in
|
## set this variable to provide a procedure that implements a profiler in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue