1.9.0-a6f84db • Published 4 years ago

@elg/speedscope v1.9.0-a6f84db

Weekly downloads
235
License
MIT
Repository
github
Last release
4 years ago

🔬speedscope

Originally, Speedscope is a fast, interactive web-based viewer for performance profiles. For more information, see the upstream repository https://github.com/jlfwong/speedscope.

This fork exposes some of its internals for use in the React Concurrent Mode Profiler. There are no plans to upstream the changes in this fork; for more details, see this discussion.

Usage

yarn add @elg/speedscope
# OR
npm install @elg/speedscope

Maintenance

Rebasing on upstream

When upstream is updated, we'll want to update this fork as well. Because this fork adds a few commits on top of Speedscope's master branch, we'll just need to rebase it on upstream/master and fix anything that's broken.

  1. Update the fork's master branch.
  2. Rebase fork-for-scheduling-profiler on it.
  3. Test build: run yarn build to run the scripts/build-release.sh script.
  4. Flow typecheck
    1. cd dist/library
    2. Run flow init to add a .flowconfig file. (assumes you have flow-bin installed globally)
    3. flow check. Follow the steps below to fix any errors.
  5. Force push to this branch.

Modifying exports

This package's exports are declared in src/library.ts. Exports added here will be able to be imported.

Flow types

Flow types are generated by Flowgen and manually fixed up with regex. If flow check is failing, follow these steps to fix the errors:

  1. Try modifying the TypeScript type definitions to resolve the errors.
  2. If that doesn't work, add/modify the regex codemods in scripts/build-release.sh.

Deployment

The fork-for-scheduling-profiler branch of this repository is automatically published to NPM by GitHub Actions.

Our generated version numbers have this format: <upstream Speedscope version>-<Git commit hash>

1.9.0-a6f84db

4 years ago

1.9.0-c46bbab

4 years ago

1.9.0-b013053

4 years ago

1.9.0-846c4e7

4 years ago

1.6.0-7beda70

4 years ago

1.6.0-0d8f3a5

4 years ago

1.6.0-787837d

4 years ago

1.6.0-a037be1

4 years ago

1.6.0

4 years ago