Skip to content

Commit e4f326b

Browse files
author
John Doe
committed
refactor: fix build
1 parent 03c8484 commit e4f326b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/utils/src/lib/trace-file-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const nextId2 = () => ({ local: `0x${++id2Count}` });
3636
const defaults = (opt?: { pid?: number; tid?: number; ts?: number }) => ({
3737
pid: opt?.pid ?? process.pid,
3838
tid: opt?.tid ?? threadId,
39-
ts: opt?.ts ?? defaultClock.fromPerfMs(performance.now()),
39+
ts: opt?.ts ?? defaultClock.epochNowUs(),
4040
});
4141

4242
export const frameTreeNodeId = (pid: number, tid: number) =>

packages/utils/src/lib/trace-file.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export type TraceArgs =
6060
* @property {string} name - Event name
6161
* @property {number} pid - Process ID
6262
* @property {number} tid - Thread ID
63-
* @property {number} ts - Timestamp in microseconds
63+
* @property {number} ts - Timestamp in epoch microseconds
6464
* @property {TraceArgs} [args] - Optional event arguments
6565
*/
6666
export type BaseTraceEvent = {

0 commit comments

Comments
 (0)