Skip to content

Commit 0bc8487

Browse files
author
Qi Li (leeli4)
committed
optimize report generation
1 parent d789a20 commit 0bc8487

File tree

3 files changed

+41
-8
lines changed

3 files changed

+41
-8
lines changed

compare_mem_alloc.plt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
if (GPVAL_VERSION >= 5.0) set for [i=1:8] linetype i dashtype i
22
if (GPVAL_VERSION < 5.0) set termoption dashed
33

4+
print "Statistical Data for Memory Allocation on JavaVM "
5+
stats 'data/NcsJVMLauncher/mem_NcsJVMLauncher.log' using 3
6+
7+
print "Statistical Data for Memory Allocation on PythonVM(Total)"
8+
stats 'data/python3/mem_total.log' using 3
9+
10+
print "Statistical Data for Memory Allocation on ncs.smp"
11+
stats 'data/ncs.smp/mem_ncs.smp.log' using 3
12+
13+
print "Statistical Data for Commited_AS"
14+
stats 'data/python3/mem_total.log' using 4
15+
print "Recommended CommitLimit: ",STATS_max
16+
print "Please add some buffer range based on the Recommended CommitLimit"
17+
418
set term png small size 800,600
519
set output "graphs/compare/mem-graph-compare-allocate.png"
620

@@ -24,8 +38,6 @@ set format x '%H:%M:%S'
2438

2539
show style line
2640

27-
28-
2941
plot "data/python3/mem_total.log" using 1:5 with lines axes x1y1 lc 'red' lw 2 title "CommitLimit", \
3042
"data/python3/mem_total.log" using 1:4 with lines axes x1y1 title "Commited_AS", \
3143
"data/ncs.smp/mem_ncs.smp.log" using 1:3 with lines axes x1y1 title "ncs.smp", \

compare_mem_rss.plt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
if (GPVAL_VERSION >= 5.0) set for [i=1:8] linetype i dashtype i
22
if (GPVAL_VERSION < 5.0) set termoption dashed
33

4+
print "Statistical Data for Memory Consumption on JavaVM Used"
5+
stats 'data/NcsJVMLauncher/mem_NcsJVMLauncher.log' using 2
6+
7+
print "Statistical Data for Memory Consumption on PythonVM(Total) Used"
8+
stats 'data/python3/mem_total.log' using 2
9+
10+
print "Statistical Data for Physical Memory Consumption on ncs.smp Used"
11+
stats 'data/ncs.smp/mem_ncs.smp.log' using 2
12+
13+
print "Statistical Data for Commited_AS"
14+
stats 'data/python3/mem_total.log' using 4
15+
print "Recommended CommitLimit: ",STATS_max
16+
print "Please add some buffer range based on the Recommended CommitLimit"
17+
18+
419
set term png small size 800,600
520
set output "graphs/compare/mem-graph-compare-rss.png"
621

plot.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
#!/bin/bash
22

3+
echo "====================================== Collection for for all process ====================================================="
34
bash collect.sh ncs.smp $1 &
45
bash collect.sh NcsJVMLauncher $1 &
56
bash collect.sh python3 $1 &
67
wait
7-
echo "===================================== Collection for for all process done ================================================="
8-
echo "\n\n"
8+
echo "===================================== Collection for for all process done =================================================\n\n"
99

1010

11+
echo "====================================== Ploting graph to all process ========================================================"
12+
echo "====================================== Ploting graph for ncs.smp process ========================================================"
1113
bash graphs.sh ncs.smp
12-
echo "\n"
14+
echo "===================================== Ploting graph for ncs.smp process done =================================================\n"
15+
echo "====================================== Ploting graph for NcsJVMLauncher process ========================================================"
1316
bash graphs.sh NcsJVMLauncher
14-
echo "\n"
17+
echo "===================================== Ploting graph for NcsJVMLauncher process done =================================================\n"
18+
echo "====================================== Ploting graph for python3 process ========================================================"
1519
bash graphs.sh python3
16-
echo "\n"
20+
echo "===================================== Ploting graph for python3 process done =================================================\n"
21+
echo "====================================== Ploting graph to compare between process ========================================================"
1722
bash graphs_compare.sh
18-
echo "===================================== Ploting graph for all process done ================================================="
23+
echo "====================================== Ploting graph to compare between process done ========================================================\n"
24+
echo "===================================== Ploting graph to all process done ================================================="

0 commit comments

Comments
 (0)