1236 |
|
else return false; |
1237 |
|
} |
1238 |
|
|
1239 |
+ |
|
1240 |
|
////////////////////////////////////////////////////////////////////////////// |
1241 |
|
// |
1242 |
|
// http://stackoverflow.com/questions/669438/how-to-get-memory-usage-at-run-time-in-c |
1249 |
|
/* usage: |
1250 |
|
double vm2, rss2; |
1251 |
|
process_mem_usage(vm2, rss2); |
1252 |
< |
cout << "Memory usage: VM: " << vm << "; RSS: " << rss << endl; |
1252 |
> |
cout << "Memory usage: VM: " << vm2 << "; RSS: " << rss2 << endl; |
1253 |
|
*/ |
1254 |
|
|
1255 |
|
void process_mem_usage(double& vm_usage, double& resident_set) |
1906 |
|
y[nPoints]=y[0]; |
1907 |
|
|
1908 |
|
TPolyLine *l = new TPolyLine(nPoints+1,x,y); |
1909 |
< |
l->SetFillColor(TColor::GetColor("#5858FA")); |
1910 |
< |
l->SetLineColor(TColor::GetColor("#5858FA")); |
1909 |
> |
l->SetFillColor(TColor::GetColor("#A2A2FA")); |
1910 |
> |
l->SetLineColor(TColor::GetColor("#A2A2FA")); |
1911 |
|
l->SetLineWidth(1); |
1912 |
|
return l; |
1913 |
|
} |