-/* Copyright (c) 2010-2020. The SimGrid Team.
+/* Copyright (c) 2010-2021. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
double value, double now, double delta)
{
// only trace resource utilization if resource is known by tracing mechanism
- container_t container = Container::by_name_or_null(resource);
- if (not container || not value)
+ Container* container = Container::by_name_or_null(resource);
+ if (container == nullptr || value == 0.0)
return;
// trace uncategorized resource utilization
if (TRACE_uncategorized()){
- XBT_DEBUG("UNCAT %s [%f - %f] %s %s %f", type, now, now + delta, resource, name, value);
+ XBT_VERB("UNCAT %s [%f - %f] %s %s %f", type, now, now + delta, resource, name, value);
container->get_variable(name)->instr_event(now, delta, resource, value);
}