Brian Vaughn
fbd82385d2
Fixed a state cleanup issue if Profiler data is cleared
2019-05-22 09:04:55 -07:00
Brian Vaughn
d1344768b2
Changed export code to (hopefully) support larger exports
2019-05-22 08:41:57 -07:00
Brian Vaughn
ec44eb1e4c
Tweaked did-not-render text color to be slightly dimmer
2019-05-22 08:32:10 -07:00
Brian Vaughn
a03c3b5d14
Bumped Profiler exported data version
2019-05-22 08:22:33 -07:00
Brian Vaughn
99b6a44beb
Updated event subscriptions and getters to use new ProfilerStore
2019-05-22 07:40:41 -07:00
Brian Vaughn
2d4bb01c01
Moved profiling data to ProfilerContext to fix re-import bug
2019-05-22 07:28:26 -07:00
Brian Vaughn
95bd6c8f63
Added export to web shell and removed 'downloads' API permission
2019-05-22 06:46:42 -07:00
Brian Vaughn
36d51f4eb6
Added root selector UI to Profiler
2019-05-22 06:40:04 -07:00
Brian Vaughn
c6de014a9a
Massively overhauled profiling data architecture
2019-05-22 06:05:25 -07:00
Brian Vaughn
7ce9f4859c
Renamed Store importedProfilingData -> profilingData
2019-05-20 10:45:16 -07:00
Brian Vaughn
16a81feb72
Moved priority level constants into rendeer interface
2019-05-20 09:39:26 -07:00
Brian Vaughn
9a6a19456f
Show commit priority levels in Profiler UI
2019-05-20 09:39:26 -07:00
Lucas Cordeiro
1e025edb9a
Fix undefined chart node when switching commits in profiler
2019-05-17 09:35:10 -03:00
Brian Vaughn
f10a6b379c
Improve scanning Profiler chart for deep renders
2019-05-15 14:20:36 -07:00
Brian Vaughn
6fd2e72b5e
Minor nits
2019-05-14 11:01:41 -07:00
Ivan Babak
76e569992b
Cleanup profile export/import data types, add export/import test
...
Strengthened the I/O-boundary type conversion logic.
Fixed type inconsistencies uncovered by removing `any` and
by making explicit type annotations and transformations.
In particular, these were likely malformed when restored from a file:
- `commitDetails`
- `interactions`
- `initialTreeBaseDurations`
The mismatches were Map vs interleaved Array.
2019-05-13 23:59:01 -07:00
Brian Vaughn
1723c5d316
Changed "Unknown" fallback displayName to "Anonymous". Added memo/forwardRef labels to Profiler charts.
2019-05-13 15:26:14 -07:00
Brian Vaughn
6b4c758338
CSS tweaks
2019-05-13 14:51:56 -07:00
Brian Vaughn
e2746ffd0e
Merge branch 'enhancement/display-change' of https://github.com/submetu/react-devtools-experimental into submetu-enhancement/display-change
2019-05-13 14:12:27 -07:00
Brian Vaughn
cf99c3ee6c
Moved calculation of self duration to the backend/renderer
...
This enables self duration to be computed accurately despite component filters
2019-05-13 10:13:29 -07:00
Subhan
ec89ae88b6
Changes display of ForwardRef and Memo components
2019-05-13 18:58:03 +02:00
Brian Vaughn
b74f3f507a
Added basic tests for InspectedElementContext
2019-05-10 09:13:54 -07:00
Brian Vaughn
ac0022bf4a
Added more tree context tests
2019-05-10 08:07:27 -07:00
Brian Vaughn
7160f6f584
Fixed owners stack direction and added current element to stack
2019-05-09 18:11:17 -07:00
Brian Vaughn
427f0f63c1
Added TreeContext tests
2019-05-09 15:52:50 -07:00
Brian Vaughn
b6c135c165
Added Jest tests for OwnersListContext
2019-05-09 14:21:22 -07:00
Brian Vaughn
564a223368
Fetch owners list from renderer (using suspense)
...
Owners in the list may have been filtered out of the Store, but in the owners list view- it's important to still show them. The frontend cannot do this on its own, so this list needs to come from the renderer interface.
2019-05-09 11:47:22 -07:00
Brian Vaughn
17516b76ae
Dim owners that have been filtered from the tree in rendered-by list
2019-05-08 18:23:54 -07:00
Brian Vaughn
df10afba51
Merge pull request #262 from submetu/enhancement/label-improvement
...
Profiler: Improve labels for times that round to 0.0ms
2019-05-08 14:26:16 -07:00
Subhan
34a38dc4f0
updates snapshots and removes extra formatting from formatTime
2019-05-08 23:33:26 +03:00
Subhan
d3522f1f66
Uses FormDuration and FormTime to format times that are 0 into something more readable
2019-05-08 23:18:43 +03:00
Brian Vaughn
703706b40f
Add toggle-suspense button to all elements
...
This button is disabled if the renderer returns canToggleSuspense=false.
2019-05-08 10:50:32 -07:00
Subhan
60511aadc0
Profiler: Improve labels for times that round to 0.0ms
2019-05-08 10:11:52 +03:00
Brian Vaughn
a54581c2dd
Fixed invalid DOM nesting warning
2019-05-07 15:25:17 -07:00
Brian Vaughn
97b7fdd2d9
Fixed a deprecated prop warning from react-window
2019-05-07 14:47:37 -07:00
Brian Vaughn
278661715c
Show import error dialog if profiling data import fails
2019-05-07 14:38:11 -07:00
Brian Vaughn
acdc9bae67
Added export+import profiling data test coverage
...
Also fixed an incomplete import feature as well as a regression in export that had gone unnoticed due to previous lack of test coverage.
2019-05-07 13:08:46 -07:00
Brian Vaughn
d86bc1020e
Hardened tests to ensure expectations are flushed
2019-05-06 13:04:14 -07:00
Brian Vaughn
c29483122c
Removed outdated TODO comment
2019-05-05 09:56:54 -07:00
Brian Vaughn
da1e5776b1
Added a second Profiling test (for CommitDetails) and fixed some module reset prolems
2019-05-04 13:11:56 -07:00
Brian Vaughn
dd96b3314c
Cleaned up tests a bit. Profiling test uses mock timers now.
2019-05-04 09:36:13 -07:00
Brian Vaughn
a8ed95445c
Store profiler snapshot data by root (and clear on root unmount)
2019-05-03 14:59:20 -07:00
Brian Vaughn
a552b7b5f7
Only clear Profiling snapshot on root-unmount
2019-05-03 10:12:45 -07:00
Brian Vaughn
73cf0fa32b
Merge branch 'master' into sompylasar-232-clear-profiling-data-for-unmounted-root
2019-05-03 10:01:43 -07:00
Brian Vaughn
8585ee37db
Renamed assertOneMap -> assertEmptyMap
2019-05-03 09:30:48 -07:00
Brian Vaughn
8850a9a64a
Merge branch '232-clear-profiling-data-for-unmounted-root' of https://github.com/sompylasar/react-devtools-experimental into sompylasar-232-clear-profiling-data-for-unmounted-root
2019-05-03 09:24:58 -07:00
Brian Vaughn
e71bda5257
Right-align flame graph children
2019-05-03 09:21:26 -07:00
Brian Vaughn
07281993d1
Merge pull request #242 from sompylasar/improve-flow-coverage-any
...
Improve Flow coverage by reducing typecasts through `any`
2019-05-03 08:00:47 -07:00
Brian Vaughn
d7447a8458
Fixed bug in Store.getIndexOfElementID() that caused roots with multiple top-level children to return an incorrect item index
2019-05-02 15:12:57 -07:00
Brian Vaughn
4e04907d13
Added badge for enabled filter count
2019-05-02 10:53:40 -07:00