MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / GetMemoryUsage

Method GetMemoryUsage

comp/gridfunction.cpp:253–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252
253 Array<MemoryUsage> GridFunction :: GetMemoryUsage () const
254 {
255 //if (&const_cast<GridFunction&> (*this).GetVector())
256 if (this->GetVectorPtr())
257 {
258 // int olds = mu.Size();
259 //const_cast<GridFunction&> (*this).GetVector().MemoryUsage (mu);
260 auto mu = this->GetVector().GetMemoryUsage ();
261 for (int i = 0; i < mu.Size(); i++)
262 mu[i].AddName (string(" gf ")+GetName());
263 return mu;
264 }
265 return Array<MemoryUsage>();
266 }
267
268
269

Callers

nothing calls this directly

Calls 5

GetNameFunction · 0.85
GetVectorPtrMethod · 0.80
AddNameMethod · 0.80
GetMemoryUsageMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected