| 313 | |
| 314 | |
| 315 | void |
| 316 | TinyProfiler::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 | |
| 339 | void |
| 340 | TinyProfiler::MemoryInitialize () |