MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / Initialize

Method Initialize

Src/Base/AMReX_TinyProfiler.cpp:315–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315void
316TinyProfiler::Initialize ()
317{
318 {
319 amrex::ParmParse pp("tiny_profiler");
320 pp.queryAdd("device_synchronize_around_region", device_synchronize_around_region);
321 if (! pp.query("verbose", "v", verbose)) {
322 pp.add("verbose", verbose);
323 }
324 // Specify the maximum percentage of inclusive time
325 // that the "Other" section in the output can have (default 1%)
326 pp.queryAdd("print_threshold", print_threshold);
327
328 pp.queryAdd("enabled", enabled);
329 }
330
331 if (!enabled) { return; }
332
333 regionstack.emplace_back(mainregion);
334 t_init = amrex::second();
335
336 finalized = false;
337}
338
339void
340TinyProfiler::MemoryInitialize ()

Callers

nothing calls this directly

Calls 4

secondFunction · 0.85
queryAddMethod · 0.80
queryMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected