details:
- default is 0
- so if categories are not needed, have to set tracing/uncategorized:1
to get resource utilization traces for the simulation
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8505
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
#define OPT_TRACING_SMPI "tracing/smpi"
#define OPT_TRACING_SMPI_GROUP "tracing/smpi/group"
#define OPT_TRACING_PLATFORM "tracing/platform"
#define OPT_TRACING_SMPI "tracing/smpi"
#define OPT_TRACING_SMPI_GROUP "tracing/smpi/group"
#define OPT_TRACING_PLATFORM "tracing/platform"
+#define OPT_TRACING_UNCATEGORIZED "tracing/uncategorized"
#define OPT_TRACING_MSG_TASK "tracing/msg/task"
#define OPT_TRACING_MSG_PROCESS "tracing/msg/process"
#define OPT_TRACING_MSG_VOLUME "tracing/msg/volume"
#define OPT_TRACING_MSG_TASK "tracing/msg/task"
#define OPT_TRACING_MSG_PROCESS "tracing/msg/process"
#define OPT_TRACING_MSG_VOLUME "tracing/msg/volume"
return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_PLATFORM);
}
return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_PLATFORM);
}
+int TRACE_uncategorized (void)
+{
+ return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_UNCATEGORIZED);
+}
+
int TRACE_msg_task_is_enabled(void)
{
return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_MSG_TASK);
int TRACE_msg_task_is_enabled(void)
{
return xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_MSG_TASK);
xbt_cfgelm_int, &default_tracing_platform, 0, 1,
NULL, NULL);
xbt_cfgelm_int, &default_tracing_platform, 0, 1,
NULL, NULL);
+ /* tracing uncategorized resource utilization */
+ int default_tracing_uncategorized = 0;
+ xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_UNCATEGORIZED,
+ "Tracing of uncategorized resource (host and link) utilization.",
+ xbt_cfgelm_int, &default_tracing_uncategorized, 0, 1,
+ NULL, NULL);
+
/* platform method */
char *default_tracing_platform_method = xbt_strdup("b");
xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_PLATFORM_METHOD,
/* platform method */
char *default_tracing_platform_method = xbt_strdup("b");
xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_PLATFORM_METHOD,
int TRACE_smpi_is_enabled(void);
int TRACE_smpi_is_grouped(void);
int TRACE_platform_is_enabled(void);
int TRACE_smpi_is_enabled(void);
int TRACE_smpi_is_grouped(void);
int TRACE_platform_is_enabled(void);
+int TRACE_uncategorized (void);
int TRACE_msg_task_is_enabled(void);
int TRACE_msg_process_is_enabled(void);
int TRACE_msg_volume_is_enabled(void);
int TRACE_msg_task_is_enabled(void);
int TRACE_msg_process_is_enabled(void);
int TRACE_msg_volume_is_enabled(void);
return;
//trace uncategorized host utilization
return;
//trace uncategorized host utilization
- TRACE_surf_resource_utilization_event(smx_action, now, delta,
+ if (TRACE_uncategorized()){
+ TRACE_surf_resource_utilization_event(smx_action, now, delta,
"power_used", name, value);
"power_used", name, value);
//trace categorized utilization
if (!IS_TRACED(surf_action))
//trace categorized utilization
if (!IS_TRACED(surf_action))