Custom Speedscope fork with exported internals
npm install @elg/speedscopeOriginally, 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.
``sh`
yarn add @elg/speedscopeOR
npm install @elg/speedscope
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'llupstream/master
just need to rebase it on and fix anything that's broken.
1. Update the fork's master branch.fork-for-scheduling-profiler
1. Rebase on it.yarn build
1. Test build: run to run the scripts/build-release.sh script.cd dist/library
1. Flow typecheck
1. flow init
1. Run to add a .flowconfig file. (assumes you haveflow-bin
installedflow check
globally)
1. . Follow the steps below to fix any errors.
1. Force push to this branch.
This package's exports are declared in src/library.ts. Exports added here
will be able to be imported.
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.
1. If that doesn't work, add/modify the regex codemods in
scripts/build-release.sh.
The fork-for-scheduling-profiler branch of this repository is automatically
published to NPM by GitHub
Actions.
Our generated version numbers have this format: