forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement User Timing marks view (#109)
Summary --- Implement User Timing marks view as a fixed-height row above our React events. Also adds a tooltip for them. Colors [obtained from Firefox Profiler](https://github.com/firefox-devtools/profiler/blob/c4f68f423c7035a094952311addd0af5bec209e7/src/utils/colors.js#L26-L27) to match Firefox's Marker Chart. The colors aren't the best since they kind of upstage the React events. Resolves #72 iteration 1. This PR does not display User Timing measures due to the complexities of displaying a stack of User Timing measures. I also don't know how to identify a measure's start/end marks, so I'm not able to implement highlighting of related marks. We can create a separate issue for User Timing measures (#72 iteration 3). Test Plan --- * `yarn lint` * `yarn flow`: no type errors in changed code. Also fixed type errors in `EventTooltip`; 24 errors remaining. * `yarn test`: tests for `preprocessData` updated. * `yarn start`: tested with Facebook.com profile
- Loading branch information
Showing
9 changed files
with
418 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.