X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/664456b5edbfdc7a730fd3e4bca139e8da9183b4..65e338fbfd769d49b29242bfe56cde18c03b6074:/src/instr/paje.c diff --git a/src/instr/paje.c b/src/instr/paje.c index 7a7710e311..b86e138694 100644 --- a/src/instr/paje.c +++ b/src/instr/paje.c @@ -1,14 +1,8 @@ -/* - * general.c - * - * Created on: Oct 7, 2009 - * Author: Lucas Schnorr - * License: 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. - * - * Copyright (c) 2009 The SimGrid team. - */ +/* Copyright (c) 2010. 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. */ #include "instr/private.h" @@ -44,6 +38,7 @@ static int pajeAddVariableId = 23; static int pajeSubVariableId = 24; static int pajeDefineVariableTypeId = 25; static int pajeStartLinkWithVolumeId = 26; +static int pajeNewEventId = 27; #define TRACE_LINE_SIZE 1000 @@ -251,6 +246,12 @@ void TRACE_paje_create_header(void) { %% SourceContainer string \n\ %% Key string \n\ %% Volume string \n\ +%%EndEventDef\n\ +%%EventDef PajeNewEvent %d \n\ +%% Time date \n\ +%% EntityType string \n\ +%% Container string \n\ +%% Value string \n\ %%EndEventDef\n", pajeDefineContainerTypeId, pajeDefineStateTypeId, pajeDefineEntityValueId, pajeDefineEventTypeId, pajeDefineLinkTypeId, pajeCreateContainerId, @@ -265,7 +266,8 @@ void TRACE_paje_create_header(void) { pajeAddVariableId, pajeSubVariableId, pajeDefineVariableTypeId, - pajeStartLinkWithVolumeId); + pajeStartLinkWithVolumeId, + pajeNewEventId); } /* internal to this file */ @@ -463,4 +465,9 @@ void pajeSubVariable (double time, const char *entityType, const char *container fprintf(tracing_file, "%s\n", line); } +void pajeNewEvent (double time, const char *entityType, const char *container, const char *value) +{ + fprintf(tracing_file, "%d %.15lf %s %s %s\n", pajeNewEventId, time, entityType, container, value); +} + #endif