Skip to content

Commit

Permalink
feat: add anroid perf total pss
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Feb 3, 2023
1 parent 6d82fa9 commit 712eea4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/AndroidPerfChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,10 @@ const printPerfMem = () => {
xAxisIndex: [0, 1],
},
],
legend: {
top: '8%',
data: ['Phy RSS', 'VM RSS', 'Total PSS'],
},
yAxis: [{ name: '内存占用(b)', min: 0 }],
series: [
{
Expand All @@ -714,6 +718,15 @@ const printPerfMem = () => {
showSymbol: false,
boundaryGap: false,
},
{
name: 'Total PSS',
type: 'line',
data: props.procPerf.map((obj) => {
return obj.totalPSS;
}),
showSymbol: false,
boundaryGap: false,
},
],
};
chart.setOption(option);
Expand Down

0 comments on commit 712eea4

Please sign in to comment.