Skip to content

Commit 6b638d9

Browse files
committed
refactor: wip
1 parent 02b9da8 commit 6b638d9

File tree

10 files changed

+674
-613
lines changed

10 files changed

+674
-613
lines changed

packages/utils/src/lib/process-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface Counter {
1616
/**
1717
* Base regex pattern for time ID format: yyyymmdd-hhmmss-ms
1818
*/
19-
const TIME_ID_BASE = /\d{8}-\d{6}-\d{3}/;
19+
export const TIME_ID_BASE = /\d{8}-\d{6}-\d{3}/;
2020

2121
/**
2222
* Regex patterns for validating ID formats used in Write-Ahead Logging (WAL) system.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
[
2+
{
3+
"args": {
4+
"detail": {
5+
"devtools": {
6+
"dataType": "track-entry",
7+
"track": "int-test-track",
8+
},
9+
},
10+
},
11+
"cat": "blink.user_timing",
12+
"name": "test-operation:start",
13+
"ph": "i",
14+
"pid": 10001,
15+
"tid": 1,
16+
"ts": 1700000005000000,
17+
},
18+
{
19+
"args": {
20+
"data": {
21+
"detail": {
22+
"devtools": {
23+
"dataType": "track-entry",
24+
"track": "int-test-track",
25+
},
26+
},
27+
},
28+
},
29+
"cat": "blink.user_timing",
30+
"id2": {
31+
"local": "0x1",
32+
},
33+
"name": "test-operation",
34+
"ph": "b",
35+
"pid": 10001,
36+
"tid": 1,
37+
"ts": 1700000005000001,
38+
},
39+
{
40+
"args": {
41+
"data": {
42+
"detail": {
43+
"devtools": {
44+
"dataType": "track-entry",
45+
"track": "int-test-track",
46+
},
47+
},
48+
},
49+
},
50+
"cat": "blink.user_timing",
51+
"id2": {
52+
"local": "0x1",
53+
},
54+
"name": "test-operation",
55+
"ph": "e",
56+
"pid": 10001,
57+
"tid": 1,
58+
"ts": 1700000005000002,
59+
},
60+
{
61+
"args": {
62+
"detail": {
63+
"devtools": {
64+
"dataType": "track-entry",
65+
"track": "int-test-track",
66+
},
67+
},
68+
},
69+
"cat": "blink.user_timing",
70+
"name": "test-operation:end",
71+
"ph": "i",
72+
"pid": 10001,
73+
"tid": 1,
74+
"ts": 1700000005000003,
75+
},
76+
]

packages/utils/src/lib/profiler/__snapshots__/trace.write-test.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
[
2+
{
3+
"args": {
4+
"detail": {
5+
"devtools": {
6+
"dataType": "track-entry",
7+
"track": "int-test-track",
8+
},
9+
},
10+
},
11+
"cat": "blink.user_timing",
12+
"name": "test-operation:start",
13+
"ph": "i",
14+
"pid": 10001,
15+
"tid": 1,
16+
"ts": 1700000005000000,
17+
},
18+
{
19+
"args": {
20+
"data": {
21+
"detail": {
22+
"devtools": {
23+
"dataType": "track-entry",
24+
"track": "int-test-track",
25+
},
26+
},
27+
},
28+
},
29+
"cat": "blink.user_timing",
30+
"id2": {
31+
"local": "0x1",
32+
},
33+
"name": "test-operation",
34+
"ph": "b",
35+
"pid": 10001,
36+
"tid": 1,
37+
"ts": 1700000005000001,
38+
},
39+
{
40+
"args": {
41+
"data": {
42+
"detail": {
43+
"devtools": {
44+
"dataType": "track-entry",
45+
"track": "int-test-track",
46+
},
47+
},
48+
},
49+
},
50+
"cat": "blink.user_timing",
51+
"id2": {
52+
"local": "0x1",
53+
},
54+
"name": "test-operation",
55+
"ph": "e",
56+
"pid": 10001,
57+
"tid": 1,
58+
"ts": 1700000005000002,
59+
},
60+
{
61+
"args": {
62+
"detail": {
63+
"devtools": {
64+
"dataType": "track-entry",
65+
"track": "int-test-track",
66+
},
67+
},
68+
},
69+
"cat": "blink.user_timing",
70+
"name": "test-operation:end",
71+
"ph": "i",
72+
"pid": 10001,
73+
"tid": 1,
74+
"ts": 1700000005000003,
75+
},
76+
]

0 commit comments

Comments
 (0)