-
- XBT_DEBUG("Filename %s is open for writing", filename);
-
- /* output generator version */
- fprintf (tracing_file, "#This file was generated using SimGrid-%d.%d.%d\n",
- SIMGRID_VERSION_MAJOR, SIMGRID_VERSION_MINOR, SIMGRID_VERSION_PATCH);
- fprintf (tracing_file, "#[");
- unsigned int cpt;
- char *str;
- xbt_dynar_foreach (xbt_cmdline, cpt, str){
- fprintf(tracing_file, "%s ",str);
- }
- fprintf (tracing_file, "]\n");
-
- /* output one line comment */
- dump_comment (TRACE_get_comment());
-
- /* output comment file */
- dump_comment_file (TRACE_get_comment_file());
-
- /* output header */
- TRACE_header(TRACE_basic(),TRACE_display_sizes());
-}
-
-void TRACE_paje_end() {
- fclose(tracing_file);
- char *filename = TRACE_get_filename();
- XBT_DEBUG("Filename %s is closed", filename);
-}
-
-void DefineContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineVariableTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- if (type->color)
- stream << " \"" << type->color << "\"";
- print_row();
-}
-
-void DefineStateTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineEventTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineLinkTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream (this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << source->id
- << " " << dest->id
- << " " << type->name;
- print_row();
-}
-
-void DefineEntityValueEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- stream << " " << value->id
- << " " << value->father->id
- << " " << value->name;
- if(value->color)
- stream << " \"" << value->color << "\"";
- print_row();
-}
-
-void CreateContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << container->id
- << " " << container->type->id
- << " " << container->father->id
- << " \"" << container->name << "\"";
-
- print_row();
-}
-
-void DestroyContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << container->type->id
- << " " << container->id;
-
- print_row();
-}
-
-void SetVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void AddVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void SubVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void SetStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id;
- stream << " " <<value->id;
-#if HAVE_SMPI
- if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
- stream << " \"" << filename
- << "\" " << linenumber;
- }
-#endif
- print_row();
-}
-
-void PushStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id;
- stream << " " <<value->id;
-
- if (TRACE_display_sizes()) {
- stream << " ";
- if (extra != nullptr) {
- stream << static_cast<instr_extra_data>(extra)->send_size;