Skip to content

Commit 9fc6da4

Browse files
author
Guillaume Chau
committed
feat: integrate routes history into framerate graph
1 parent 6c911ff commit 9fc6da4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/devtools/views/perf/FramerateGraph.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ import FramerateMarkerInspector from './FramerateMarkerInspector.vue'
7676
7777
const BUBBLE_COLORS = {
7878
mutations: '#FF6B00',
79-
events: '#997fff'
79+
events: '#997fff',
80+
routes: '#42B983'
8081
}
8182
8283
// In ms

src/devtools/views/perf/module.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ export default {
6565
}
6666
}))
6767

68+
const { routeChanges } = rootState.router
69+
addEntries('routes', routeChanges, entry => ({
70+
label: entry.to.fullPath,
71+
state: {
72+
'from': entry.from,
73+
'to': entry.to
74+
}
75+
}))
76+
6877
return markers
6978
}
7079
},

0 commit comments

Comments
 (0)