The Sparta Modeling Framework
Loading...
Searching...
No Matches
MemoryProfiler.hpp
Go to the documentation of this file.
1// <MemoryProfiler.hpp> -*- C++ -*-
2
8#pragma once
9
10#include <memory>
11#include <string>
12
13namespace sparta {
14
15class TreeNode;
16
17namespace app {
18 class Simulation;
19}
20
31{
32public:
33 MemoryProfiler(const std::string & def_file,
34 TreeNode * context,
35 app::Simulation * sim);
36
37 enum class Phase {
38 Build,
39 Configure,
40 Bind,
41 Simulate
42 };
43 void enteringPhase(const Phase phase);
44 void exitingPhase(const Phase phase);
45 void saveReport();
46 void saveReportToStream(std::ostream & os);
47
48private:
49 class Impl;
50 std::shared_ptr<Impl> impl_;
51};
52
53}
54
Utility used to periodically collect heap usage statistics throughout a simulation....
Node in a composite tree representing a sparta Tree item.
Definition TreeNode.hpp:205
Simulator which builds a sparta DeviceTree.
Macros for handling exponential backoff.