Skip to content

Commit

Permalink
Merge 1b47300 into 9d13d95
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Aug 16, 2018
2 parents 9d13d95 + 1b47300 commit 0bb70dc
Show file tree
Hide file tree
Showing 28 changed files with 10,819 additions and 44 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Added

* Added support to import from linux `perf script` [#135]

### Fixed

## [0.6.0]
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,22 @@ into the browser from Chrome.

If the `raw: true` flag is set when recording a dump, the resulting json dump can be imported into speedscope.

### `perf` and `DTrace`
### Linux `perf`

If you process the output of `perf` or `DTrace` first with Brendan Gregg's `stackcollapse-*.pl` scripts (https://github.com/brendangregg/FlameGraph#2-fold-stacks), the result can be imported into speedscope.
You can import profiles recorded using `perf record` and formatted using `perf script`.

perf record -a -F 999 -g -p PID > perf.data
perf script -i perf.data > profile.linux-perf.txt

Then drop the resulting `perf.txt` into speedscope, or if you have speedscope installed
locally, you can run:

perf record -a -F 999 -g -p PID > perf.data
perf script -i perf.data | speedscope -

### `DTrace`

If you process the output of `DTrace` first with Brendan Gregg's `stackcollapse-*.pl` scripts (https://github.com/brendangregg/FlameGraph#2-fold-stacks), the result can be imported into speedscope.

## Importing via URL

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepack": "./scripts/build-release.sh",
"prettier": "prettier --write 'src/**/*.ts' 'src/**/*.tsx'",
"lint": "eslint 'src/**/*.ts' 'src/**/*.tsx'",
"jest": "./scripts/test-setup.sh && jest",
"jest": "./scripts/test-setup.sh && jest --runInBand",
"coverage": "npm run jest -- --coverage && coveralls < coverage/lcov.info",
"test": "tsc --noEmit && npm run lint && npm run coverage",
"serve": "parcel assets/index.html --open --no-autoinstall"
Expand Down

0 comments on commit 0bb70dc

Please sign in to comment.