Skip to content

Commit

Permalink
Add snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
zacmarion-cb committed Dec 15, 2023
1 parent 1ed4d35 commit fbf03aa
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/import/__snapshots__/trace-event.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,41 @@ exports[`importTraceEvents bad E events: indexToView 1`] = `0`;

exports[`importTraceEvents bad E events: profileGroup.name 1`] = `"too-many-end-events.json"`;

exports[`importTraceEvents different number of start and end calls to same function at same timestamp 1`] = `
Object {
"frames": Array [
Frame {
"col": undefined,
"file": undefined,
"key": "anonymous",
"line": undefined,
"name": "anonymous",
"selfWeight": 5,
"totalWeight": 5,
},
Frame {
"col": undefined,
"file": undefined,
"key": "function1",
"line": undefined,
"name": "function1",
"selfWeight": 0,
"totalWeight": 2,
},
],
"name": "pid 0, tid 0",
"stacks": Array [
"anonymous 1.00µs",
"anonymous;anonymous;function1;anonymous 2.00µs",
"anonymous;anonymous;anonymous 2.00µs",
],
}
`;

exports[`importTraceEvents different number of start and end calls to same function at same timestamp: indexToView 1`] = `0`;

exports[`importTraceEvents different number of start and end calls to same function at same timestamp: profileGroup.name 1`] = `"simultaneous-anonymous-calls.json"`;

exports[`importTraceEvents end event with empty stack 1`] = `
Object {
"frames": Array [
Expand Down

0 comments on commit fbf03aa

Please sign in to comment.