-/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_routing, instr, "Tracing platform hierarchy");
-static int platform_created = 0; /* indicate whether the platform file has been traced */
static std::vector<simgrid::instr::NetZoneContainer*> currentContainer; /* push and pop, used only in creation */
static const char *instr_node_name (xbt_node_t node)
if (TRACE_smpi_is_enabled() && TRACE_smpi_is_grouped())
container->type_->getOrCreateContainerType("MPI")->getOrCreateStateType("MPI_STATE");
- if (TRACE_msg_process_is_enabled()) {
+ if (TRACE_actor_is_enabled()) {
simgrid::instr::ContainerType* msg_process = container->type_->getOrCreateContainerType("MSG_PROCESS");
simgrid::instr::StateType* state = msg_process->getOrCreateStateType("MSG_PROCESS_STATE");
state->addEntityValue("suspend", "1 0 1");
filter);
XBT_DEBUG ("Graph extraction finished.");
delete filter;
- platform_created = 1;
TRACE_paje_dump_buffer(true);
}
recursiveNewValueForUserStateType(type_name, value, color, simgrid::instr::Container::getRoot()->type_);
}
-int instr_platform_traced ()
-{
- return platform_created;
-}
-
#define GRAPHICATOR_SUPPORT_FUNCTIONS
static void recursiveXBTGraphExtraction(xbt_graph_t graph, std::map<std::string, xbt_node_t>* nodes,