00001 /************************************************************************* 00002 This file is part of MESH. 00003 00004 MESH is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation, either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 MESH is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with MESH. If not, see <http://www.gnu.org/licenses/>. 00016 **************************************************************************/ 00021 #ifndef MESH_TRACE_H 00022 #define MESH_TRACE_H 00023 00024 #define EXEC_EVENT 0 00025 #define COMM_EVENT 1 00026 #define TB_EVENT 2 00027 00042 void mesh_trace_init(mesh_time start, mesh_time stop); 00043 00044 //adds the current simulation time-slice into the trace drawing 00045 void mesh_trace_commit_step(mesh_trace_event *trace_event); 00046 00058 void mesh_trace_print(gchar *filename); 00059 00073 void mesh_ignore_trace_collection(mesh_resource *resource); 00074 00088 void mesh_enable_trace_collection(mesh_resource *resource); 00089 00090 #endif
1.7.1