Changeset 1205 in svn for trunk/examples
- Timestamp:
- Jul 9, 2013, 11:01:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/MemoryUsage.C
r1202 r1205 12 12 13 13 TGraph grvsz, grrss; 14 TLegend legend(0.41, 0.5 8, 0.77, 0.67);14 TLegend legend(0.41, 0.59, 0.77, 0.68); 15 15 16 16 TCanvas *canvas; … … 89 89 in >> vsz >> rss; 90 90 if(!in.good()) break; 91 grvsz.SetPoint(i, (i-1)*0.1, vsz );92 grrss.SetPoint(i, (i-1)*0.1, rss );91 grvsz.SetPoint(i, (i-1)*0.1, vsz/1024.0); 92 grrss.SetPoint(i, (i-1)*0.1, rss/1024.0); 93 93 ++i; 94 94 } 95 grvsz.SetPoint(i, (i-1)*0.1, 0.0); 96 grrss.SetPoint(i, (i-1)*0.1, 0.0); 95 97 96 98 grvsz.GetXaxis()->SetLimits(0, 30); … … 98 100 grvsz.GetYaxis()->SetTitleOffset(1.75); 99 101 grvsz.GetXaxis()->SetTitle("time, s"); 100 grvsz.GetYaxis()->SetTitle("memory usage, kB");101 grvsz.SetLineColor( kBlack);102 grvsz.GetYaxis()->SetTitle("memory usage, MB"); 103 grvsz.SetLineColor(16); 102 104 grrss.SetLineColor(kBlack); 103 grvsz.SetLineStyle(k Dashed);105 grvsz.SetLineStyle(kSolid); 104 106 grrss.SetLineStyle(kSolid); 105 107 grvsz.SetLineWidth(3);
Note:
See TracChangeset
for help on using the changeset viewer.