@parca/profile 0.17.1 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/GraphTooltipArrow/Content.d.ts +1 -2
  3. package/dist/GraphTooltipArrow/Content.d.ts.map +1 -1
  4. package/dist/GraphTooltipArrow/Content.js +1 -2
  5. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts +1 -2
  6. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts.map +1 -1
  7. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.js +1 -2
  8. package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts +1 -2
  9. package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts.map +1 -1
  10. package/dist/GraphTooltipArrow/useGraphTooltip/index.js +2 -2
  11. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts +2 -6
  12. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts.map +1 -1
  13. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.js +4 -5
  14. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenuWrapper.d.ts +20 -0
  15. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenuWrapper.d.ts.map +1 -0
  16. package/{src/Callgraph/constants.ts → dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenuWrapper.js} +12 -3
  17. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts +8 -51
  18. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.d.ts.map +1 -1
  19. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.js +59 -136
  20. package/dist/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.d.ts +8 -0
  21. package/dist/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.d.ts.map +1 -0
  22. package/dist/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.js +40 -0
  23. package/dist/ProfileIcicleGraph/IcicleGraphArrow/TooltipContext.d.ts +32 -0
  24. package/dist/ProfileIcicleGraph/IcicleGraphArrow/TooltipContext.d.ts.map +1 -0
  25. package/dist/ProfileIcicleGraph/IcicleGraphArrow/TooltipContext.js +40 -0
  26. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts +4 -5
  27. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts.map +1 -1
  28. package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.js +62 -76
  29. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.d.ts +3 -3
  30. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.d.ts.map +1 -1
  31. package/dist/ProfileIcicleGraph/IcicleGraphArrow/utils.js +9 -7
  32. package/dist/ProfileIcicleGraph/index.d.ts +3 -6
  33. package/dist/ProfileIcicleGraph/index.d.ts.map +1 -1
  34. package/dist/ProfileIcicleGraph/index.js +8 -17
  35. package/dist/ProfileView/components/DashboardItems/index.d.ts +3 -5
  36. package/dist/ProfileView/components/DashboardItems/index.d.ts.map +1 -1
  37. package/dist/ProfileView/components/DashboardItems/index.js +4 -9
  38. package/dist/ProfileView/components/Toolbars/index.d.ts.map +1 -1
  39. package/dist/ProfileView/components/Toolbars/index.js +1 -2
  40. package/dist/ProfileView/index.d.ts +1 -1
  41. package/dist/ProfileView/index.d.ts.map +1 -1
  42. package/dist/ProfileView/index.js +1 -13
  43. package/dist/ProfileView/types/visualization.d.ts +1 -1
  44. package/dist/ProfileView/types/visualization.d.ts.map +1 -1
  45. package/dist/index.d.ts +0 -4
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +0 -2
  48. package/dist/styles.css +1 -1
  49. package/package.json +5 -5
  50. package/src/GraphTooltipArrow/Content.tsx +0 -3
  51. package/src/GraphTooltipArrow/DockedGraphTooltip/index.tsx +0 -3
  52. package/src/GraphTooltipArrow/useGraphTooltip/index.ts +1 -3
  53. package/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx +5 -13
  54. package/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenuWrapper.tsx +53 -0
  55. package/src/ProfileIcicleGraph/IcicleGraphArrow/IcicleGraphNodes.tsx +96 -310
  56. package/src/ProfileIcicleGraph/IcicleGraphArrow/MemoizedTooltip.tsx +78 -0
  57. package/src/ProfileIcicleGraph/IcicleGraphArrow/TooltipContext.tsx +93 -0
  58. package/src/ProfileIcicleGraph/IcicleGraphArrow/index.tsx +108 -216
  59. package/src/ProfileIcicleGraph/IcicleGraphArrow/utils.ts +8 -15
  60. package/src/ProfileIcicleGraph/index.tsx +7 -38
  61. package/src/ProfileView/components/DashboardItems/index.tsx +2 -27
  62. package/src/ProfileView/components/Toolbars/index.tsx +0 -2
  63. package/src/ProfileView/index.tsx +0 -14
  64. package/src/ProfileView/types/visualization.ts +1 -1
  65. package/src/index.tsx +0 -5
  66. package/dist/Callgraph/constants.d.ts +0 -3
  67. package/dist/Callgraph/constants.d.ts.map +0 -1
  68. package/dist/Callgraph/constants.js +0 -14
  69. package/dist/Callgraph/index.d.ts +0 -11
  70. package/dist/Callgraph/index.d.ts.map +0 -1
  71. package/dist/Callgraph/index.js +0 -104
  72. package/dist/Callgraph/mockData/index.d.ts +0 -149
  73. package/dist/Callgraph/mockData/index.d.ts.map +0 -1
  74. package/dist/Callgraph/mockData/index.js +0 -594
  75. package/dist/Callgraph/utils.d.ts +0 -20
  76. package/dist/Callgraph/utils.d.ts.map +0 -1
  77. package/dist/Callgraph/utils.js +0 -97
  78. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts +0 -7
  79. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts.map +0 -1
  80. package/dist/GraphTooltip/ExpandOnHoverValue.js +0 -4
  81. package/dist/GraphTooltip/index.d.ts +0 -41
  82. package/dist/GraphTooltip/index.d.ts.map +0 -1
  83. package/dist/GraphTooltip/index.js +0 -201
  84. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts +0 -6
  85. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts.map +0 -1
  86. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.js +0 -59
  87. package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.d.ts +0 -47
  88. package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.d.ts.map +0 -1
  89. package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.js +0 -93
  90. package/dist/ProfileIcicleGraph/IcicleGraph/index.d.ts +0 -14
  91. package/dist/ProfileIcicleGraph/IcicleGraph/index.d.ts.map +0 -1
  92. package/dist/ProfileIcicleGraph/IcicleGraph/index.js +0 -48
  93. package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.d.ts +0 -15
  94. package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.d.ts.map +0 -1
  95. package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.js +0 -57
  96. package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.d.ts +0 -8
  97. package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.d.ts.map +0 -1
  98. package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.js +0 -32
  99. package/dist/ProfileIcicleGraph/IcicleGraph/utils.d.ts +0 -7
  100. package/dist/ProfileIcicleGraph/IcicleGraph/utils.d.ts.map +0 -1
  101. package/dist/ProfileIcicleGraph/IcicleGraph/utils.js +0 -66
  102. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleChartRootNode.d.ts +0 -9
  103. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleChartRootNode.d.ts.map +0 -1
  104. package/dist/ProfileIcicleGraph/IcicleGraphArrow/IcicleChartRootNode.js +0 -45
  105. package/dist/ProfileView/hooks/useGraphviz.d.ts +0 -12
  106. package/dist/ProfileView/hooks/useGraphviz.d.ts.map +0 -1
  107. package/dist/ProfileView/hooks/useGraphviz.js +0 -42
  108. package/src/Callgraph/index.tsx +0 -177
  109. package/src/Callgraph/mockData/index.ts +0 -605
  110. package/src/Callgraph/utils.ts +0 -141
  111. package/src/GraphTooltip/ExpandOnHoverValue.tsx +0 -30
  112. package/src/GraphTooltip/index.tsx +0 -509
  113. package/src/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.tsx +0 -96
  114. package/src/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.tsx +0 -266
  115. package/src/ProfileIcicleGraph/IcicleGraph/index.tsx +0 -123
  116. package/src/ProfileIcicleGraph/IcicleGraph/useColoredGraph.ts +0 -117
  117. package/src/ProfileIcicleGraph/IcicleGraph/useNodeColor.ts +0 -54
  118. package/src/ProfileIcicleGraph/IcicleGraph/utils.ts +0 -102
  119. package/src/ProfileIcicleGraph/IcicleGraphArrow/IcicleChartRootNode.tsx +0 -130
  120. package/src/ProfileView/hooks/useGraphviz.ts +0 -69
@@ -1,605 +0,0 @@
1
- // Copyright 2022 The Parca Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
-
14
- export const dotGraph = `{
15
- n1 [Label = "n1"];
16
- n2 [Label = "n2"];
17
- n3 [Label = "n3"];
18
- n1 -- n2;
19
- n1 -- n3;
20
- n2 -- n2;
21
- }`;
22
-
23
- export const jsonGraph = {
24
- total: '4358676',
25
- unit: 'count',
26
- nodes: [
27
- {
28
- id: 'n0',
29
- label: 'A node',
30
- value: 30,
31
- },
32
- {
33
- id: 'n1',
34
- label: 'Another node',
35
- value: 20,
36
- },
37
- {
38
- id: 'n2',
39
- label: 'And a last one',
40
- value: 10,
41
- },
42
- {
43
- id: 'n3',
44
- label: 'n3',
45
- value: 2,
46
- },
47
- {
48
- id: 'n4',
49
- label: 'n4',
50
- value: 1,
51
- },
52
- {
53
- id: 'n5',
54
- label: 'n5',
55
- value: 1,
56
- },
57
- ],
58
- edges: [
59
- {
60
- id: 'e0',
61
- source: 'n0',
62
- target: 'n1',
63
- label: 'edge 1',
64
- },
65
- {
66
- id: 'e1',
67
- source: 'n1',
68
- target: 'n2',
69
- label: 'edge 2',
70
- },
71
- {
72
- id: 'e2',
73
- source: 'n2',
74
- target: 'n0',
75
- label: 'edge 3',
76
- },
77
- {
78
- id: 'e3',
79
- source: 'n0',
80
- target: 'n2',
81
- label: 'edge 4',
82
- },
83
- {
84
- id: 'e4',
85
- source: 'n2',
86
- target: 'n3',
87
- label: 'edge 5',
88
- },
89
- {
90
- id: 'e5',
91
- source: 'n3',
92
- target: 'n4',
93
- label: 'edge 6',
94
- },
95
- {
96
- id: 'e5',
97
- source: 'n4',
98
- target: 'n5',
99
- label: 'edge 6',
100
- },
101
- {
102
- id: 'e5',
103
- source: 'n3',
104
- target: 'n5',
105
- label: 'edge 6',
106
- },
107
- ],
108
- };
109
-
110
- // just a string, doesn't need to be on separate lines
111
- export const graphvizDot = `
112
- digraph {
113
- N1 [id="node1"]
114
- N2 [id="node2"]
115
- N3 [id="node3"]
116
- N4 [id="node4"]
117
- N1 -> N2 [id="e1" label="e1 fdskjao fdjksaol"]
118
- N2 -> N3 [id="e2" label="e2"]
119
- N3 -> N4 [id="e3" label="e3"]
120
- N3 -> N1 [id="e4" label="e4"]
121
- }`;
122
-
123
- export const jsonGraphWithGraphvizPositions = {
124
- name: '%27',
125
- directed: true,
126
- strict: false,
127
- _draw_: [
128
- {
129
- op: 'c',
130
- grad: 'none',
131
- color: '#fffffe00',
132
- },
133
- {
134
- op: 'C',
135
- grad: 'none',
136
- color: '#ffffff',
137
- },
138
- {
139
- op: 'P',
140
- points: [
141
- [0.0, 0.0],
142
- [0.0, 180.0],
143
- [59.0, 180.0],
144
- [59.0, 0.0],
145
- ],
146
- },
147
- ],
148
- bb: '0,0,59,180',
149
- xdotversion: '1.7',
150
- _subgraph_cnt: 0,
151
- objects: [
152
- {
153
- _gvid: 0,
154
- name: 'n0',
155
- Label: 'A node',
156
- _draw_: [
157
- {
158
- op: 'c',
159
- grad: 'none',
160
- color: '#000000',
161
- },
162
- {
163
- op: 'C',
164
- grad: 'none',
165
- color: '#ffffff',
166
- },
167
- {
168
- op: 'E',
169
- rect: [41.0, 162.0, 18.0, 18.0],
170
- },
171
- ],
172
- _ldraw_: [
173
- {
174
- op: 'F',
175
- size: 14.0,
176
- face: 'Times-Roman',
177
- },
178
- {
179
- op: 'c',
180
- grad: 'none',
181
- color: '#0000ff',
182
- },
183
- {
184
- op: 'T',
185
- pt: [41.0, 157.8],
186
- align: 'c',
187
- width: 14.0,
188
- text: 'n0',
189
- },
190
- ],
191
- fillcolor: 'white',
192
- fixedsize: 'true',
193
- fontcolor: 'blue',
194
- height: '0.5',
195
- label: '\\N',
196
- margin: '0',
197
- pos: '41,162',
198
- shape: 'circle',
199
- style: 'filled',
200
- width: '0.5',
201
- },
202
- {
203
- _gvid: 1,
204
- name: 'n1',
205
- Label: 'Another node',
206
- _draw_: [
207
- {
208
- op: 'c',
209
- grad: 'none',
210
- color: '#000000',
211
- },
212
- {
213
- op: 'C',
214
- grad: 'none',
215
- color: '#ffffff',
216
- },
217
- {
218
- op: 'E',
219
- rect: [18.0, 90.0, 18.0, 18.0],
220
- },
221
- ],
222
- _ldraw_: [
223
- {
224
- op: 'F',
225
- size: 14.0,
226
- face: 'Times-Roman',
227
- },
228
- {
229
- op: 'c',
230
- grad: 'none',
231
- color: '#0000ff',
232
- },
233
- {
234
- op: 'T',
235
- pt: [18.0, 85.8],
236
- align: 'c',
237
- width: 14.0,
238
- text: 'n1',
239
- },
240
- ],
241
- fillcolor: 'white',
242
- fixedsize: 'true',
243
- fontcolor: 'blue',
244
- height: '0.5',
245
- label: '\\N',
246
- margin: '0',
247
- pos: '18,90',
248
- shape: 'circle',
249
- style: 'filled',
250
- width: '0.5',
251
- },
252
- {
253
- _gvid: 2,
254
- name: 'n2',
255
- Label: 'And a last one',
256
- _draw_: [
257
- {
258
- op: 'c',
259
- grad: 'none',
260
- color: '#000000',
261
- },
262
- {
263
- op: 'C',
264
- grad: 'none',
265
- color: '#ffffff',
266
- },
267
- {
268
- op: 'E',
269
- rect: [41.0, 18.0, 18.0, 18.0],
270
- },
271
- ],
272
- _ldraw_: [
273
- {
274
- op: 'F',
275
- size: 14.0,
276
- face: 'Times-Roman',
277
- },
278
- {
279
- op: 'c',
280
- grad: 'none',
281
- color: '#0000ff',
282
- },
283
- {
284
- op: 'T',
285
- pt: [41.0, 13.8],
286
- align: 'c',
287
- width: 14.0,
288
- text: 'n2',
289
- },
290
- ],
291
- fillcolor: 'white',
292
- fixedsize: 'true',
293
- fontcolor: 'blue',
294
- height: '0.5',
295
- label: '\\N',
296
- margin: '0',
297
- pos: '41,18',
298
- shape: 'circle',
299
- style: 'filled',
300
- width: '0.5',
301
- },
302
- ],
303
- edges: [
304
- {
305
- _gvid: 0,
306
- tail: 0,
307
- head: 1,
308
- _draw_: [
309
- {
310
- op: 'c',
311
- grad: 'none',
312
- color: '#000000',
313
- },
314
- {
315
- op: 'b',
316
- points: [
317
- [35.67, 144.76],
318
- [32.98, 136.58],
319
- [29.65, 126.45],
320
- [26.61, 117.2],
321
- ],
322
- },
323
- ],
324
- _hdraw_: [
325
- {
326
- op: 'S',
327
- style: 'solid',
328
- },
329
- {
330
- op: 'c',
331
- grad: 'none',
332
- color: '#000000',
333
- },
334
- {
335
- op: 'C',
336
- grad: 'none',
337
- color: '#000000',
338
- },
339
- {
340
- op: 'P',
341
- points: [
342
- [29.91, 116.04],
343
- [23.47, 107.63],
344
- [23.26, 118.23],
345
- ],
346
- },
347
- ],
348
- pos: 'e,23.465,107.63 35.666,144.76 32.976,136.58 29.647,126.45 26.607,117.2',
349
- },
350
- {
351
- _gvid: 1,
352
- tail: 1,
353
- head: 2,
354
- _draw_: [
355
- {
356
- op: 'c',
357
- grad: 'none',
358
- color: '#000000',
359
- },
360
- {
361
- op: 'b',
362
- points: [
363
- [23.33, 72.76],
364
- [26.02, 64.58],
365
- [29.35, 54.45],
366
- [32.39, 45.2],
367
- ],
368
- },
369
- ],
370
- _hdraw_: [
371
- {
372
- op: 'S',
373
- style: 'solid',
374
- },
375
- {
376
- op: 'c',
377
- grad: 'none',
378
- color: '#000000',
379
- },
380
- {
381
- op: 'C',
382
- grad: 'none',
383
- color: '#000000',
384
- },
385
- {
386
- op: 'P',
387
- points: [
388
- [35.74, 46.23],
389
- [35.53, 35.63],
390
- [29.09, 44.04],
391
- ],
392
- },
393
- ],
394
- pos: 'e,35.535,35.633 23.334,72.765 26.024,64.578 29.353,54.448 32.393,45.195',
395
- },
396
- {
397
- _gvid: 2,
398
- tail: 2,
399
- head: 0,
400
- _draw_: [
401
- {
402
- op: 'c',
403
- grad: 'none',
404
- color: '#000000',
405
- },
406
- {
407
- op: 'b',
408
- points: [
409
- [42.62, 36.17],
410
- [43.52, 46.53],
411
- [44.55, 60.01],
412
- [45.0, 72.0],
413
- [45.6, 87.99],
414
- [45.6, 92.01],
415
- [45.0, 108.0],
416
- [44.69, 116.33],
417
- [44.09, 125.39],
418
- [43.46, 133.62],
419
- ],
420
- },
421
- ],
422
- _hdraw_: [
423
- {
424
- op: 'S',
425
- style: 'solid',
426
- },
427
- {
428
- op: 'c',
429
- grad: 'none',
430
- color: '#000000',
431
- },
432
- {
433
- op: 'C',
434
- grad: 'none',
435
- color: '#000000',
436
- },
437
- {
438
- op: 'P',
439
- points: [
440
- [39.95, 133.58],
441
- [42.62, 143.83],
442
- [46.93, 134.15],
443
- ],
444
- },
445
- ],
446
- pos: 'e,42.625,143.83 42.625,36.167 43.524,46.533 44.548,60.013 45,72 45.602,87.989 45.602,92.011 45,108 44.686,116.33 44.095,125.39 43.462,133.62',
447
- },
448
- ],
449
- };
450
-
451
- export const nodeWithMetaData = (
452
- id: string,
453
- name: string
454
- ): {id: string; cumulative: number; meta: any} => ({
455
- id,
456
- cumulative: Math.floor(Math.random() * 10),
457
- meta: {
458
- location: {
459
- id: {
460
- '0': 201,
461
- '1': 124,
462
- '2': 147,
463
- '3': 175,
464
- '4': 103,
465
- '5': 42,
466
- '6': 76,
467
- '7': 211,
468
- '8': 186,
469
- '9': 184,
470
- '10': 7,
471
- '11': 19,
472
- '12': 62,
473
- '13': 204,
474
- '14': 76,
475
- '15': 130,
476
- },
477
- address: `${Math.floor(Math.random() * 10)}${Math.floor(Math.random() * 10)}${Math.floor(
478
- Math.random() * 10
479
- )}`,
480
- mappingId: {
481
- '0': 72,
482
- '1': 191,
483
- '2': 155,
484
- '3': 45,
485
- '4': 34,
486
- '5': 49,
487
- '6': 65,
488
- '7': 169,
489
- '8': 170,
490
- '9': 93,
491
- '10': 28,
492
- '11': 111,
493
- '12': 102,
494
- '13': 196,
495
- '14': 92,
496
- '15': 210,
497
- },
498
- isFolded: false,
499
- },
500
- mapping: {
501
- id: {
502
- '0': 72,
503
- '1': 191,
504
- '2': 155,
505
- '3': 45,
506
- '4': 34,
507
- '5': 49,
508
- '6': 65,
509
- '7': 169,
510
- '8': 170,
511
- '9': 93,
512
- '10': 28,
513
- '11': 111,
514
- '12': 102,
515
- '13': 196,
516
- '14': 92,
517
- '15': 210,
518
- },
519
- start: '0',
520
- limit: '0',
521
- offset: '0',
522
- file: '',
523
- buildId: '',
524
- hasFunctions: true,
525
- hasFilenames: false,
526
- hasLineNumbers: false,
527
- hasInlineFrames: false,
528
- },
529
- function: {
530
- id: {
531
- '0': 46,
532
- '1': 90,
533
- '2': 8,
534
- '3': 65,
535
- '4': 135,
536
- '5': 181,
537
- '6': 65,
538
- '7': 61,
539
- '8': 148,
540
- '9': 246,
541
- '10': 90,
542
- '11': 244,
543
- '12': 208,
544
- '13': 193,
545
- '14': 40,
546
- '15': 177,
547
- },
548
- startLine: '0',
549
- name,
550
- systemName: 'runtime.gopark',
551
- filename: `/opt/homebrew/Cellar/go/1.18.2/libexec/src/runtime/proc.go/${name}`,
552
- },
553
- line: {
554
- functionId: {
555
- '0': 46,
556
- '1': 90,
557
- '2': 8,
558
- '3': 65,
559
- '4': 135,
560
- '5': 181,
561
- '6': 65,
562
- '7': 61,
563
- '8': 148,
564
- '9': 246,
565
- '10': 90,
566
- '11': 244,
567
- '12': 208,
568
- '13': 193,
569
- '14': 40,
570
- '15': 177,
571
- },
572
- line: '361',
573
- },
574
- },
575
- });
576
-
577
- export const jsonGraphWithMetaData = {
578
- total: '4358676',
579
- nodes: [
580
- nodeWithMetaData('root', 'root node'),
581
- nodeWithMetaData('n1', 'normal node'),
582
- nodeWithMetaData('n2', 'second node'),
583
- nodeWithMetaData('n3', 'child'),
584
- ],
585
- edges: [
586
- {
587
- id: 'edge1',
588
- source: 'root',
589
- target: 'n1',
590
- cumulative: '10',
591
- },
592
- {
593
- id: 'edge2',
594
- source: 'root',
595
- target: 'n2',
596
- cumulative: '8',
597
- },
598
- {
599
- id: 'edge2',
600
- source: 'n1',
601
- target: 'n3',
602
- cumulative: '4',
603
- },
604
- ],
605
- };