Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10,288 changes: 5,755 additions & 4,533 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"eslint": "8.0.0",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "24.3.0",
"jest": "30.2.0",
"jest-environment-jsdom": "29.7.0",
"jfrview": "0.2.0",
"jsverify": "0.8.3",
"jszip": "3.1.5",
Expand All @@ -52,14 +53,15 @@
"prettier": "3.1.1",
"protobufjs": "6.8.8",
"source-map": "0.6.1",
"ts-jest": "24.3.0",
"ts-jest": "29.4.6",
"tsx": "4.19.2",
"typescript": "5.9.3",
"typescript-json-schema": "0.67.0",
"uglify-es": "3.2.2",
"uint8array-json-parser": "0.0.2"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.js$": "esbuild-jest"
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-file-format-schema-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const child_process = require('child_process')

// Convert the file-format-spec.ts file into a json schema file
let jsonSchema = child_process.execSync(
'node_modules/.bin/typescript-json-schema ./src/lib/file-format-spec.ts --titles --required --topRef "*"',
'node_modules/.bin/typescript-json-schema ./src/lib/file-format-spec.ts --titles --required --topRef "*" --skipLibCheck',
{
encoding: 'utf8',
},
Expand Down
32 changes: 16 additions & 16 deletions src/import/__snapshots__/bg-flamegraph.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`importFromBGFlameGraph 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": undefined,
Expand Down Expand Up @@ -41,7 +41,7 @@ Object {
},
],
"name": "simple.txt",
"stacks": Array [
"stacks": [
"a;b;c 2",
"a;b;d 4",
"a;b;c 3",
Expand All @@ -51,8 +51,8 @@ Object {
`;

exports[`importFromBGFlameGraph with CRLF 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": undefined,
Expand Down Expand Up @@ -91,7 +91,7 @@ Object {
},
],
"name": "simple-crlf.txt",
"stacks": Array [
"stacks": [
"a;b;c 2",
"a;b;d 4",
"a;b;c 3",
Expand All @@ -105,8 +105,8 @@ exports[`importFromBGFlameGraph with CRLF: indexToView 1`] = `0`;
exports[`importFromBGFlameGraph with CRLF: profileGroup.name 1`] = `"simple-crlf.txt"`;

exports[`importFromBGFlameGraph with UTF-16, Big Endian 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": undefined,
Expand Down Expand Up @@ -145,7 +145,7 @@ Object {
},
],
"name": "simple-utf16-be.txt",
"stacks": Array [
"stacks": [
"a;b;c 2",
"a;b;d 4",
"a;b;c 3",
Expand All @@ -159,8 +159,8 @@ exports[`importFromBGFlameGraph with UTF-16, Big Endian: indexToView 1`] = `0`;
exports[`importFromBGFlameGraph with UTF-16, Big Endian: profileGroup.name 1`] = `"simple-utf16-be.txt"`;

exports[`importFromBGFlameGraph with UTF-16, Little Endian 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": undefined,
Expand Down Expand Up @@ -199,7 +199,7 @@ Object {
},
],
"name": "simple-utf16-le.txt",
"stacks": Array [
"stacks": [
"a;b;c 2",
"a;b;d 4",
"a;b;c 3",
Expand All @@ -213,8 +213,8 @@ exports[`importFromBGFlameGraph with UTF-16, Little Endian: indexToView 1`] = `0
exports[`importFromBGFlameGraph with UTF-16, Little Endian: profileGroup.name 1`] = `"simple-utf16-le.txt"`;

exports[`importFromBGFlameGraph with invalid lines 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": undefined,
Expand Down Expand Up @@ -253,7 +253,7 @@ Object {
},
],
"name": "simple-with-invalids.txt",
"stacks": Array [
"stacks": [
"a;b;c 2",
"a;b;d 4",
"a;b;c 3",
Expand Down
38 changes: 19 additions & 19 deletions src/import/__snapshots__/callgrind.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`importFromCallgrind 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "file1.c",
Expand Down Expand Up @@ -32,7 +32,7 @@ Object {
},
],
"name": "callgrind.example.log -- Instructions",
"stacks": Array [
"stacks": [
"main;func1;func2 300",
"main;func1 100",
"main;func2 400",
Expand All @@ -42,8 +42,8 @@ Object {
`;

exports[`importFromCallgrind cfn reset 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "alpha.c",
Expand Down Expand Up @@ -82,7 +82,7 @@ Object {
},
],
"name": "callgrind.cfn-reset.log -- Instructions",
"stacks": Array [
"stacks": [
"alpha;beta 10",
"alpha;gamma 10",
"alpha;delta;gamma 10",
Expand All @@ -97,8 +97,8 @@ exports[`importFromCallgrind cfn reset: indexToView 1`] = `0`;
exports[`importFromCallgrind cfn reset: profileGroup.name 1`] = `"callgrind.cfn-reset.log"`;

exports[`importFromCallgrind multiple event types 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "file1.c",
Expand Down Expand Up @@ -128,7 +128,7 @@ Object {
},
],
"name": "callgrind.multiple-event-types.log -- Time",
"stacks": Array [
"stacks": [
"main;func1;func2 3.00µs",
"main;func1 1.00µs",
"main;func2 4.00µs",
Expand All @@ -138,8 +138,8 @@ Object {
`;

exports[`importFromCallgrind multiple event types 2`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "file1.c",
Expand Down Expand Up @@ -169,7 +169,7 @@ Object {
},
],
"name": "callgrind.multiple-event-types.log -- Memory",
"stacks": Array [
"stacks": [
"main;func1;func2 4.88 KB",
"main;func1 14.65 KB",
"main;func2 2.93 KB",
Expand All @@ -183,8 +183,8 @@ exports[`importFromCallgrind multiple event types: indexToView 1`] = `0`;
exports[`importFromCallgrind multiple event types: profileGroup.name 1`] = `"callgrind.multiple-event-types.log"`;

exports[`importFromCallgrind name compression 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "file1.c",
Expand Down Expand Up @@ -214,7 +214,7 @@ Object {
},
],
"name": "callgrind.name-compression.log -- Instructions",
"stacks": Array [
"stacks": [
"main;func1;func2 300",
"main;func1 100",
"main;func2 400",
Expand All @@ -228,8 +228,8 @@ exports[`importFromCallgrind name compression: indexToView 1`] = `0`;
exports[`importFromCallgrind name compression: profileGroup.name 1`] = `"callgrind.name-compression.log"`;

exports[`importFromCallgrind subposition compression 1`] = `
Object {
"frames": Array [
{
"frames": [
Frame {
"col": undefined,
"file": "file1.c",
Expand Down Expand Up @@ -259,7 +259,7 @@ Object {
},
],
"name": "callgrind.subposition-compression.log -- Instructions",
"stacks": Array [
"stacks": [
"main;func1;func2 300",
"main;func1 100",
"main;func2 400",
Expand Down
Loading