Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
sot-core
Commits
3d9fe979
Commit
3d9fe979
authored
Jan 31, 2020
by
Joseph Mirabel
Committed by
olivier stasse
Apr 09, 2020
Browse files
[Minor] fix debugging output
parent
7761302a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sot/sot.cpp
View file @
3d9fe979
...
...
@@ -406,6 +406,7 @@ MemoryTaskSOT *getMemory(TaskAbstract &t, const Matrix::Index &tDim,
#endif
/*WITH_CHRONO*/
#ifdef WITH_CHRONO
#define TIME_STREAM DYNAMIC_GRAPH_ENTITY_DEBUG(*this)
#define sotINIT_CHRONO1 \
struct timespec t0, t1; \
double dt
...
...
@@ -414,7 +415,7 @@ MemoryTaskSOT *getMemory(TaskAbstract &t, const Matrix::Index &tDim,
clock_gettime(CLOCK_THREAD_CPUTIME_ID, &t1); \
dt = ((double)(t1.tv_sec - t0.tv_sec) * 1e6 + \
(double)(t1.tv_nsec - t0.tv_nsec) / 1e3); \
sotDEBUG(1)
<< "dT " << (long int)dt << std::endl
TIME_STREAM
<< "dT " << (long int)dt << std::endl
#define sotINITPARTCOUNTERS struct timespec tpart0
#define sotSTARTPARTCOUNTERS clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tpart0)
#define sotCOUNTER(nbc1, nbc2) \
...
...
@@ -425,7 +426,7 @@ MemoryTaskSOT *getMemory(TaskAbstract &t, const Matrix::Index &tDim,
struct timespec tpart##nbc1; \
double dt##nbc1 = 0;
#define sotPRINTCOUNTER(nbc1) \
sotDEBUG(1)
<< "dt" << iterTask << '_' << nbc1 << ' ' << (long int)dt##nbc1 \
TIME_STREAM
<< "dt" << iterTask << '_' << nbc1 << ' ' << (long int)dt##nbc1 \
<< ' '
#else // #ifdef WITH_CHRONO
#define sotINIT_CHRONO1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment