Changeset 100 for trunk/IPs/systemC/processor/Morpheo/Common/src
- Timestamp:
- Jan 8, 2009, 2:06:27 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
Makefile.flags
Makefile.tools
Makefile.tools_path
-
Property
svn:ignore
set to
-
trunk/IPs/systemC/processor/Morpheo/Common/src/Debug.cpp
r97 r100 15 15 #endif 16 16 debug_verbosity_t debug; 17 bool debug_cycle_test; 18 double debug_cycle_start; 19 double debug_cycle_stop ; 17 20 18 21 #undef FUNCTION … … 24 27 { 25 28 debug = DEBUG; 26 27 // 29 debug_cycle_test = false; 30 // debug_initialized = true; 28 31 } 29 32 #endif … … 32 35 #undef FUNCTION 33 36 #define FUNCTION "debug_init" 34 void debug_init (debug_verbosity_t level) 37 void debug_init (debug_verbosity_t level, 38 double cycle_start, 39 double cycle_stop ) 35 40 { 36 41 #ifdef DEBUG … … 39 44 // Take min 40 45 debug = (level < DEBUG)?level:DEBUG; 41 46 47 #ifdef SYSTEMC 48 debug_cycle_test = (cycle_stop > cycle_start) or (cycle_stop == -1); 49 debug_cycle_start = cycle_start; 50 debug_cycle_stop = cycle_stop; 51 #else 52 debug_cycle_test = false; 53 #endif 54 42 55 debug_initialized = true; 43 56 } -
trunk/IPs/systemC/processor/Morpheo/Common/src/Message.cpp
r97 r100 8 8 #include "Common/include/Debug.h" 9 9 #include "Common/include/Environment.h" 10 #include "Common/include/ToString.h"11 10 #include "Common/include/ErrorMorpheo.h" 11 #include "Common/include/Filename.h" 12 12 #include <sys/types.h> 13 #include <unistd.h>14 13 15 14 namespace morpheo { … … 39 38 { 40 39 // if the file is not define, take pid. 41 std::string filename = directory+"/Morpheo_"+((file!="")?file:toString<pid_t>(getpid()))+".log"; 40 std::string filename = morpheo::filename(directory, 41 "Morpheo", 42 "", 43 "log", 44 (file==""), 45 (file==""), 46 true); 42 47 43 48 log_stream = fopen (filename.c_str(), "w");
Note: See TracChangeset
for help on using the changeset viewer.