Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b49b3fec1c844631c10a50315636a2b9d9c4dbce
[simgrid.git] / src / instr / instr_paje_values.cpp
1 /* Copyright (c) 2012-2017. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <xbt/ex.hpp>
8 #include "src/instr/instr_private.hpp"
9
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_values, instr, "Paje tracing event system (values)");
11
12 namespace simgrid {
13 namespace instr {
14
15 Value::Value(std::string name, std::string color, Type* father) : name_(name), color_(color), father_(father)
16 {
17   this->id_    = std::to_string(instr_new_paje_id());
18 };
19
20 Value::~Value()
21 {
22   XBT_DEBUG("free value %s, child of %s", getCname(), father_->getCname());
23 }
24
25 }
26 }