Skip to content

Commit

Permalink
feat: integrate routes history into framerate graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Aug 8, 2018
1 parent 86b4d3f commit fb3ba54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/devtools/views/perf/FramerateGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ import FramerateMarkerInspector from './FramerateMarkerInspector.vue'
const BUBBLE_COLORS = {
mutations: '#FF6B00',
events: '#997fff'
events: '#997fff',
routes: '#42B983'
}
// In ms
Expand Down
9 changes: 9 additions & 0 deletions src/devtools/views/perf/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ export default {
}
}))

const { routeChanges } = rootState.router
addEntries('routes', routeChanges, entry => ({
label: entry.to.fullPath,
state: {
'from': entry.from,
'to': entry.to
}
}))

return markers
}
},
Expand Down

0 comments on commit fb3ba54

Please sign in to comment.