Skip to content

Commit 24472d4

Browse files
committed
feat(event-loop): timer debug info showing the start time
1 parent 64871f4 commit 24472d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/pythonmonkey/builtin_modules/timers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ function _normalizeTimerArgs(handler, delayMs, additionalArgs)
130130
type: timerType, // "setTimeout", "setImmediate", or "setInterval"
131131
fn: handler,
132132
args: additionalArgs,
133+
startTime: new Date(),
133134
delaySeconds,
134135
stack: stacks.slice(2).join('\n'), // remove the first line `_normalizeTimerArgs@...` and the second line `setTimeout/setImmediate/setInterval@...`
135136
};

0 commit comments

Comments
 (0)