Hello,
There is a memory leak when using console.time / console.timeEnd.
const uniqId = `my label ${newUUID}`;
try {
console.time(uniqId);
/* ... */
} finally {
console.timeEnd(uniqId);
}
It leaks and it's a major problem when it's used intensively with new uniqId every time.
auto find = timers_.find(string);
if (find != timers_.end()) {
delta = now - find->second;
printf("console.timeEnd: %s, %f\n", *utf8, delta.InMillisecondsF());
Here we can see that the entry is not removed from the timers_ map. I suggest to erase the entry just with timers_.erase(string) when find != timers_.end().
Regards,
Mathieu Schroeter