Skip to content

Commit 406973f

Browse files
committed
Name GC thread
1 parent bfb48f1 commit 406973f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/api/server.rkt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@
5959
(λ (out)
6060
(fprintf out "{\"traceEvents\":[")
6161
(write-json (hash 'name "process_name" 'ph "M" 'ts 0 'pid 0 'tid 0 'args (hash 'name "herbie"))
62+
out)
63+
(fprintf out ",")
64+
(write-json (hash 'name
65+
"thread_name"
66+
'ph
67+
"M"
68+
'ts
69+
0
70+
'pid
71+
0
72+
'tid
73+
(equal-hash-code 'gc)
74+
'args
75+
(hash 'name "GC"))
6276
out)))))
6377

6478
(define (trace-sync)

0 commit comments

Comments
 (0)