File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface DebugMeta {
5
5
images ?: Array < DebugImage > ;
6
6
}
7
7
8
- export type DebugImage = WasmDebugImage | SourceMapDebugImage ;
8
+ export type DebugImage = WasmDebugImage | SourceMapDebugImage | MachoDebugImage ;
9
9
10
10
interface WasmDebugImage {
11
11
type : 'wasm' ;
@@ -20,3 +20,11 @@ interface SourceMapDebugImage {
20
20
code_file : string ; // filename
21
21
debug_id : string ; // uuid
22
22
}
23
+
24
+ interface MachoDebugImage {
25
+ type : 'macho' ;
26
+ debug_id : string ;
27
+ image_addr : string ;
28
+ image_size ?: number ;
29
+ code_file ?: string ;
30
+ }
Original file line number Diff line number Diff line change 1
1
import type { DebugImage } from './debugMeta' ;
2
+ import type { MeasurementUnit } from './measurement' ;
3
+
2
4
export type ThreadId = string ;
3
5
export type FrameId = number ;
4
6
export type StackId = number ;
5
7
6
8
export interface ThreadCpuSample {
7
9
stack_id : StackId ;
8
10
thread_id : ThreadId ;
11
+ queue_address ?: string ;
9
12
elapsed_since_start_ns : string ;
10
13
}
11
14
12
15
export type ThreadCpuStack = FrameId [ ] ;
13
16
14
17
export type ThreadCpuFrame = {
15
- function : string ;
18
+ function ? : string ;
16
19
file ?: string ;
17
20
lineno ?: number ;
18
21
colno ?: number ;
19
22
abs_path ?: string ;
23
+ platform ?: string ;
24
+ instruction_addr ?: string ;
25
+ module ?: string ;
26
+ in_app ?: boolean ;
20
27
} ;
21
28
22
29
export interface ThreadCpuProfile {
@@ -68,4 +75,14 @@ export interface Profile {
68
75
relative_start_ns : string ;
69
76
relative_end_ns : string ;
70
77
} [ ] ;
78
+ measurements ?: Record <
79
+ string ,
80
+ {
81
+ unit : MeasurementUnit ;
82
+ values : {
83
+ elapsed_since_start_ns : number ;
84
+ value : number ;
85
+ } [ ] ;
86
+ }
87
+ > ;
71
88
}
You can’t perform that action at this time.
0 commit comments