-}
-
-void TRACE_user_host_variable(double time, const char *variable,
- double value, const char *what)
-{
- if (!TRACE_is_active())
- return;
-
- xbt_assert (instr_platform_traced(),
- "%s must be called after environment creation", __FUNCTION__);
-
- char valuestr[100];
- snprintf(valuestr, 100, "%g", value);
-
- if (strcmp(what, "declare") == 0) {
- instr_new_user_host_variable_type (variable, NULL);
- } else{
- char *host_name = MSG_host_self()->name;
- container_t container = getContainerByName(host_name);
+ case INSTR_US_ADD:
+ {
+ container_t container = getContainerByName(resource);
+ type_t type = getVariableType (variable, NULL, container->type);
+ new_pajeAddVariable(time, container, type, value);
+ break;
+ }
+ case INSTR_US_SUB:
+ {
+ container_t container = getContainerByName(resource);