Continued working on various aspects of the process-launching system.
[aesalon.git] / monitor / src / program / ProcessMonitor.cpp
blob075bbaf1d13427ee92b98271c1df1c012615edd6
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file monitor/src/program/ProcessMonitor.cpp
12 #include "program/ProcessMonitor.h"
13 #include "Coordinator.h"
14 #include "common/StringTo.h"
15 #include "common/StreamAsString.h"
17 namespace Monitor {
18 namespace Program {
20 ProcessMonitor::ProcessMonitor(pid_t pid) : m_pid(pid) {
21 m_sharedMemory = new SharedMemory(Common::StreamAsString() << "aesalon-" << pid,
22 Common::StringTo<uint32_t>(Coordinator::instance()->vault()->get("shmSize")));
25 ProcessMonitor::~ProcessMonitor() {
26 delete m_sharedMemory;
29 } // namespace Program
30 } // namespace Monitor