@node-projects/speedscope 2.0.0 → 2.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-projects/speedscope",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "A fast, interactive performance profile viewer with large-trace improvements, an accessible call tree and offline CLI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,10 @@
22
22
  "speedscope": "./bin/cli.mjs"
23
23
  },
24
24
  "scripts": {
25
+ "backlog:generate": "node scripts/generate-issue-backlog.mjs",
26
+ "backlog:check": "node scripts/generate-issue-backlog.mjs --check",
25
27
  "build:pages": "node scripts/prepare-release.mjs --protocol http",
28
+ "build:single-file": "tsx scripts/build-single-file.ts",
26
29
  "deploy": "gh workflow run pages.yml --ref main",
27
30
  "release:version": "node scripts/set-release-version.mjs",
28
31
  "prepack": "node scripts/prepare-release.mjs",
@@ -33,13 +36,27 @@
33
36
  "typecheck": "tsc --noEmit",
34
37
  "test:node": "node --test bin/server.test.mjs scripts/set-release-version.test.mjs",
35
38
  "schema:check": "node scripts/generate-file-format-schema-json.js --check",
36
- "test": "npm run typecheck && npm run lint && npm run jest && npm run test:node && npm run schema:check",
39
+ "test": "npm run typecheck && npm run lint && npm run jest && npm run test:node && npm run schema:check && npm run backlog:check",
37
40
  "serve": "tsx scripts/dev-server.ts"
38
41
  },
39
42
  "files": [
40
43
  "src/lib/file-format-spec.ts",
41
44
  "docs/RELEASING.md",
42
45
  "docs/LARGE_TRACE_PERFORMANCE.md",
46
+ "docs/PROFILE_FILTERS.md",
47
+ "docs/PROFILE_COMPARISON.md",
48
+ "docs/PPROF_IMPORT.md",
49
+ "docs/PYTHON_CPROFILE.md",
50
+ "docs/SEARCH_AND_LAYOUT.md",
51
+ "docs/SOURCE_AND_LABELS.md",
52
+ "docs/JAVA_THREAD_DUMPS.md",
53
+ "docs/JAVA_THREAD_DUMP_ZIP.md",
54
+ "docs/IMPORT_FORMATS.md",
55
+ "docs/PERF_IMPORT.md",
56
+ "docs/OTEL_PROFILES.md",
57
+ "docs/OFFLINE.md",
58
+ "docs/SINGLE_FILE.md",
59
+ "docs/PROPERTY_TESTS.md",
43
60
  "bin/cli.mjs",
44
61
  "bin/server.mjs",
45
62
  "dist/release/**",
@@ -55,6 +72,7 @@
55
72
  },
56
73
  "license": "MIT",
57
74
  "devDependencies": {
75
+ "@streamparser/json": "0.0.26",
58
76
  "@types/jest": "22.2.3",
59
77
  "@types/jszip": "3.1.4",
60
78
  "@types/node": "14.0.1",
@@ -68,6 +86,7 @@
68
86
  "eslint": "8.0.0",
69
87
  "eslint-plugin-prettier": "5.1.2",
70
88
  "eslint-plugin-react-hooks": "4.6.0",
89
+ "fast-check": "4.10.3",
71
90
  "jest": "30.2.0",
72
91
  "jest-environment-jsdom": "29.7.0",
73
92
  "jfrview": "0.2.0",
@@ -112,6 +131,7 @@
112
131
  ]
113
132
  },
114
133
  "dependencies": {
115
- "open": "10.1.0"
134
+ "open": "10.1.0",
135
+ "re2js": "2.10.0"
116
136
  }
117
137
  }
@@ -41,6 +41,10 @@ export namespace FileFormat {
41
41
  file?: string
42
42
  line?: number
43
43
  col?: number
44
+ /** Producer-selected RGB color. Presentation may adapt it for text contrast.
45
+ * @pattern ^#[0-9a-fA-F]{6}$
46
+ */
47
+ color?: string
44
48
  }
45
49
 
46
50
  export enum ProfileType {
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../assets/reset.css", "../../assets/source-code-pro.css"],
4
- "sourcesContent": ["/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tfont-size: 100%;\n\tfont: inherit;\n\tvertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n\tdisplay: block;\n}\nbody {\n\tline-height: 1;\n}\nol, ul {\n\tlist-style: none;\n}\nblockquote, q {\n\tquotes: none;\n}\nblockquote:before, blockquote:after,\nq:before, q:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\n/* Prevent overscrolling */\n/* https://stackoverflow.com/a/17899813 */\nhtml {\n overflow: hidden;\n height: 100%;\n}\nbody {\n height: 100%;\n overflow: auto;\n}", "@font-face{\n\tfont-family: 'Source Code Pro';\n\tfont-weight: 400;\n\tfont-style: normal;\n\tfont-stretch: normal;\n\tsrc: url('./source-code-pro/SourceCodePro-Regular.ttf.woff2') format('woff2');\n}\n"],
5
- "mappings": "AAIA,KAAM,KAAM,IAAK,KAAM,OAAQ,OAAQ,OACvC,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,EAAG,WAAY,IACvC,EAAG,KAAM,QAAS,QAAS,IAAK,KAAM,KACtC,IAAK,IAAK,GAAI,IAAK,IAAK,IAAK,EAAG,EAAG,KACnC,MAAO,OAAQ,OAAQ,IAAK,IAAK,GAAI,IACrC,EAAG,EAAG,EAAG,OACT,GAAI,GAAI,GAAI,GAAI,GAAI,GACpB,SAAU,KAAM,MAAO,OACvB,MAAO,QAAS,MAAO,MAAO,MAAO,GAAI,GAAI,GAC7C,QAAS,MAAO,OAAQ,QAAS,MACjC,OAAQ,WAAY,OAAQ,OAAQ,OACpC,KAAM,IAAK,OAAQ,KAAM,QAAS,QAClC,KAAM,KAAM,MAAO,MAhBnB,OAiBS,EAjBT,QAkBU,EACT,OAAQ,EACR,UAAW,KACX,KAAM,QACN,eAAgB,QACjB,CAEA,QAAS,MAAO,QAAS,WAAY,OACrC,OAAQ,OAAQ,OAAQ,KAAM,IAAK,QAClC,QAAS,KACV,CACA,KACC,YAAa,CACd,CACA,GAAI,GACH,WAAY,IACb,CACA,WAAY,EACX,OAAQ,IACT,CACA,UAAU,QAAS,UAAU,OAC7B,CAAC,QAAS,CAAC,OACV,QAAS,GACT,QAAS,IACV,CACA,MACC,gBAAiB,SACjB,eAAgB,CACjB,CAIA,KACI,SAAU,OACV,OAAQ,IACZ,CACA,KACI,OAAQ,KACR,SAAU,IACd,CCzDA,WACC,YAAa,gBACb,YAAa,IACb,WAAY,OACZ,aAAc,OACd,IAAK,kDAAyD,OAAO,QACtE",
6
- "names": []
7
- }