Commit Graph
261 Commits
Author SHA1 Message Date
Jamie Wong 11585fed92 Update hero GIF in README 2018-08-23 08:42:36 -07:00
Jamie Wong f7279e088e Update README.md 2018-08-23 08:15:59 -07:00
Jamie Wong 3fc631cf79 Fix a regression in resize behavior from #147 (#149)
The problem was that I was using `canvas.getBoundingClientRect()` to get the size to resize to, but that was changing as the result of CSS properties set on the canvas! Instead, we take the measurements of its container now which is set to fill the screen, and the canvas has its size entirely managed by `graphics.ts`.
2018-08-23 08:09:22 -07:00
Jamie Wong 5ab320b4cf Update README.md 2018-08-23 08:07:03 -07:00
Jamie Wong f60ab630be Fix rendering bugs when device pixel ratio changes (#147)
Fixes #102
2018-08-22 20:36:09 -07:00
Jamie Wong 453f793042 Update instructions to push tags with release 2018-08-22 18:50:25 -07:00
Jamie Wong a5c3184880 Add a way of generating a self-contained zip-file 2018-08-22 18:50:25 -07:00
Jamie Wong 3193b34c46 Update README.md 2018-08-21 10:20:08 -07:00
Jamie Wong 2df69b6713 Update README.md 2018-08-21 09:55:27 -07:00
Jamie Wong 777e605c7b Update README.md to link to wiki pages for import instructions
Fixes #115
2018-08-21 09:55:06 -07:00
Jamie Wong 100578c536 Add contributor guidelines & documentation (#144)
Fixes #4
2018-08-20 09:42:44 -07:00
Jamie Wong 03578ea7a4 0.7.1 v0.7.1 2018-08-20 08:46:13 -07:00
Jamie Wong 3210f8fc08 Fix text culling of ellipses along the left side of the viewport (#143)
Before:
![image](https://user-images.githubusercontent.com/150329/44312631-2c716280-a3b0-11e8-8834-2574b3a4a627.png)

After:
![image](https://user-images.githubusercontent.com/150329/44312639-48750400-a3b0-11e8-8017-41640fe56a22.png)

Fixes #134
2018-08-19 13:12:28 -07:00
Jamie Wong 2c89cefcdc Replace regl with GPU apis ported from evanw/sky (#140)
Fixes #101 
Fixes #137
2018-08-19 11:37:47 -07:00
Jamie Wong 853164ebbf 0.7.0 v0.7.0 2018-08-16 11:56:17 -07:00
Jamie Wong 729d7c771b Add support for importing linux "perf script" output (#135)
Fixes #119
2018-08-16 10:24:12 -07:00
Jamie Wong 9d13d95f8d Add a section about verifying the publish 2018-08-14 10:38:42 -07:00
Jamie Wong 085d6298ec 0.6.0 v0.6.0 2018-08-14 10:34:34 -07:00
Jamie Wong aa35b17d20 Downgrade to TypeScript 2.8.1 to fix JSON schema generation (#133)
Fixes #132
2018-08-14 09:37:42 -07:00
Jamie Wong a22ab9301f Add tests for redux store (#131)
This adds some baseline tests for the redux store, and also fixes some bugs I found along the way.

Bugs fixed:
- Changing selection after something has been selected within the sandwich view now works
- Table sort state is now preserved when switching between profiles

Fixes #124
2018-08-13 10:25:01 -07:00
Jamie Wong e404053837 Add support for profiles w/ multiples processes & threads (#130)
More broadly, this just supports multiple profiles loaded into the editor in the same time, which supports import from profiles which are multithreaded by importing each thread as a different profile.

For now, the only two file formats that support multiprocess import are Instruments .trace files and speedscope's own file format

In the process of doing this, I refactored the container code considerably and extracted all the dispatch calls into containers rather than them being part of the non-container view code. This is nice because it means that views don't have to be aware of which Flamechart they are or which profile index is being operated upon.

Fixes #66
Fixes #82
Fixes #91
2018-08-11 22:06:53 -07:00
Jamie Wong 558e98d24d 0.5.1 v0.5.1 2018-08-11 22:05:39 -07:00
Jamie Wong 7368e15396 0.5.0 v0.5.0 2018-08-09 09:38:55 -07:00
Jamie Wong 1bbe3de944 Update CHANGELOG.md 2018-08-09 09:27:08 -07:00
Jamie Wong 8e09be7f7f Update CHANGELOG.md 2018-08-09 09:26:26 -07:00
Jamie Wong 5ee94ec092 Support emscripten symbols containing dashes (#129)
Apparently emscripten symbols are allowed to contain dashes?

e.g. here's a line from a mapping that failed to import before this PR: `527:i32s-div`
2018-08-09 09:25:27 -07:00
Jamie Wong 4d23f1cdee Update CHANGELOG.md 2018-08-08 19:20:58 -07:00
Jamie Wong fc9260ba1d More firefox import fixes (#128) 2018-08-08 17:15:33 -07:00
Jamie Wong 182563dc7c Scroll selected node into sandwich view on mount (#126) 2018-08-08 08:37:54 -07:00
Jamie Wong e6d9994801 Update CHANGELOG.md 2018-08-07 18:42:56 -07:00
Jamie Wong 29c55c3921 Split CallTreeNodes that are non-contiguous (#123)
This PR exposed some bugs in the Firefox importer, which is also fixed in this PR.

Fixes #86
2018-08-07 18:41:56 -07:00
Jamie Wong 0b1050034f Update CHANGELOG.md 2018-08-05 14:12:31 -07:00
Jamie Wong a79beaa731 Ignore click event following a drag (#122) 2018-08-05 14:10:15 -07:00
Jamie Wong bca9c52ac9 Clamp zoom to prevent floating point issues (#121) 2018-08-05 13:57:29 -07:00
Jamie Wong 970f1b2107 Fix use of incorrect viewport size (#120) 2018-08-05 11:08:43 -07:00
Jamie Wong 72c05fe6ba Backfill some more tests (#112)
* Add tests for getHashParams

* Add tests for Color

* Cover a few more lines
2018-08-01 11:42:55 -07:00
Jamie Wong ee157c4139 Add a simple test for demangleCpp (#111) 2018-08-01 09:55:40 -07:00
Jamie Wong 94d0879417 Upgrade to TypeScript 3.0.1 (#110)
Fixes #103
2018-08-01 01:23:21 -07:00
Jamie Wong 608006232f Reorganize directory structure (#104)
While it was kind of nice having everything at the top level, the number of files is now getting a bit unwieldy and hard to understand, so I took a stab at organizing the directories without introducing too much nesting.

Test Plan:
- Ran `npm run serve` to ensure that local builds still work
- Ran `npm run prepack` then `open dist/release/index.html` to ensure that release builds still work
- Ran `scripts/deploy.sh` to ensure that the deployed version of the site will still work when I eventually redeploy
- Ran `npm run jest` to ensure that tests still work correctly
2018-08-01 00:41:45 -07:00
Jamie Wong 11a3a67dce Switch to redux for global state management (#100)
This should allow state to be more easily retained globally when switching views, and should make implementation of cross-view features like search easier too.

It also removes the need for `ReloadableComponent`

Fixes #78

Test Plan:
This changes a lot of how the app works, and a lot of stuff that isn't currently covered by tests, so here's a rough manual test plan:

1. Loaded up http://localhost:1234/, click to load the example profile
2. Switch between views, see that viewport & selection position is now retained when switching views
3. See that clicking on nodes selects them in Time Order & Left Heavy views
4. See that hitting Cmd+S saves a profile
5. See that dropping a profile in works
6. See that dropping a profile + a symbol map works
7. See that visiting localhost:1234/#profileURL=https://raw.githubusercontent.com/jlfwong/speedscope/master/sample/profiles/speedscope/0.1.2/simple-sampled.speedscope.json works
8. See that hitting "r" to toggle recursion flattening works
2018-07-31 23:53:56 -07:00
Jamie Wong 2f95f77fcf 0.4.0 v0.4.0 2018-07-21 19:44:57 -07:00
Jamie Wong fcc6808054 Optionally read from stdin via cli (#99)
Test Plan:
- `./cli.js` opens speedscope in browser with no file selected
- `./cli.js sample/profiles/Chrome/65/simple-timeline.json` opens profile
- `cat sample/profiles/Chrome/65/simple-timeline.json | ./cli.js -` opens profile
- `node --prof-process --preprocess -j sample/profiles/node/8.5.0/isolate-0x102802600-v8.log | ./cli.js -` opens profile

Fixes #95
2018-07-21 19:42:58 -07:00
Jamie Wong ea8f982c10 Import from node profiles via v8 logs (#98)
This is inspired by https://github.com/mapbox/flamebearer
2018-07-21 16:00:25 -07:00
Jamie Wong fb5d148780 Add tests ensuring that import still works even for unfamiliar filenames (#96)
When importing files, there are two different paths we use for determining the file format.

The first is to pattern match on the filename.

If that fails, we fall back to examining the structure of the file, which can be slower and therefore wasteful.

Before this PR, we only tests that the filename pattern matching was correctly identifying the format. This PR ensures that our file structure matching is working correctly too.
2018-07-18 23:44:31 -07:00
Jamie Wong d7969ac2b8 0.3.0 v0.3.0 2018-07-18 08:54:53 -07:00
Evan Wallace 1b36a2e3f4 add support for "wasm-function" symbol maps (#93)
This is an improvement to #76, which added support for asm.js symbol maps. This PR expands this to also work for emscripten's WebAssembly symbol maps too. This currently only works in Firefox. Chrome would need to fix https://crbug.com/863205 for this to be useful in Chrome.
2018-07-18 08:47:58 -07:00
Jamie Wong 8fcc0f8108 0.2.0 v0.2.0 2018-07-14 00:35:58 -07:00
Jamie Wong 75b57ad8c0 Extend the speedscope file format to support sampled profiles as well (#92)
This is being done in preparation for writing a format from rbspy to import into speedscope, whose internal file format is a list of stacks (https://github.com/rbspy/rbspy/blob/111689fe13f843ac6786855ac10ce66c3ad84ab7/src/storage/v1.rs#L13)

For now, speedscope will always export the evented format rather than the sampled format, but will accept either as input. I also added tests for existing versions of the file format to ensure I don't accidentally drop support for a past version of the file format.
2018-07-14 00:35:26 -07:00
Jamie Wong 6aa66bead2 Start with loading bar enabled when loading a local profile 2018-07-07 23:12:03 -07:00
Jamie Wong bcecf9c260 Set name to filename by default 2018-07-07 23:05:49 -07:00