13 #ifndef __PROCESS_MEMORY_PROFILER_HPP__ 14 #define __PROCESS_MEMORY_PROFILER_HPP__ 48 static const std::string START_HELP();
49 static const std::string STOP_HELP();
50 static const std::string DOWNLOAD_RAW_HELP();
51 static const std::string DOWNLOAD_TEXT_HELP();
52 static const std::string DOWNLOAD_GRAPH_HELP();
53 static const std::string STATISTICS_HELP();
54 static const std::string STATE_HELP();
97 void stopAndGenerateRawProfile();
124 const std::string& filename,
126 std::function<
Try<Nothing>(
const std::string& outputPath)> generator);
128 const time_t getId()
const;
130 std::string getPath()
const;
137 DiskArtifact(
const std::string&
path, time_t
id);
153 #endif // __PROCESS_MEMORY_PROFILER_HPP__
Definition: errorbase.hpp:36
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
MemoryProfiler(const Option< std::string > &authenticationRealm)
Definition: duration.hpp:32
Definition: memory_profiler.hpp:38
Definition: executor.hpp:48
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
~MemoryProfiler() override
Definition: memory_profiler.hpp:42
void initialize() override
Invoked when a process gets spawned.
Definition: process.hpp:505