Skip to content

Commit d7dd0ca

Browse files
committed
Do not trace by default & consistent option
1 parent 91bb0e2 commit d7dd0ca

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libworkstream_df/config.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
* using OpenStream.
165165
*/
166166

167-
#define WQUEUE_PROFILE 1
167+
#define WQUEUE_PROFILE 0
168168

169169
/*
170170
* MATRIX_PROFILE profiles the amount of information exchanged between the the
@@ -203,7 +203,7 @@
203203
* All tracing to disk requires WQUEUE_PROFILE and sufficient MAX_WQEVENT_SAMPLES
204204
*/
205205

206-
#define MAX_WQEVENT_SAMPLES 100000000
206+
#define MAX_WQEVENT_SAMPLES 0 // 100000000
207207
#define WQEVENT_SAMPLING_OUTFILE_ENV_VAR "WQEVENT_SAMPLING_OUTFILE"
208208
#define WQEVENT_SAMPLING_OUTFILE "events.ost"
209209

@@ -212,7 +212,7 @@
212212
* first state will be a work seeking state.
213213
*/
214214

215-
#define TRACE_RT_INIT_STATE
215+
#define TRACE_RT_INIT_STATE 1
216216

217217
/*
218218
* If MAX_WQEVENT_CYCLES set to 0 or more, trace event samples will only be recorded
@@ -226,19 +226,19 @@
226226
* Enable communication events (steal, push, data read, data write) to be traced
227227
*/
228228

229-
#define TRACE_COMMUNICATION 1
229+
#define TRACE_COMMUNICATION 0
230230

231231
/*
232232
* Enable runtime counters (wq_length, num tcreates, rusage events, etc) to be traced
233233
*/
234234

235-
#define TRACE_QUEUE_STATS 1
235+
#define TRACE_QUEUE_STATS 0
236236

237237
/*
238238
* Enable worker states events (steal, push, data read, data write) to be traced
239239
*/
240240

241-
#define TRACE_WORKER_STATES 1
241+
#define TRACE_WORKER_STATES 0
242242

243243
/*
244244
* Enable PAPI events to be traced
@@ -249,7 +249,7 @@
249249
* - WS_PAPI_MULTIPLEX provides the default multiplexing setting, if not user-provided
250250
*/
251251

252-
#define WS_PAPI_PROFILE 1
252+
#define WS_PAPI_PROFILE 0
253253
#if WS_PAPI_PROFILE
254254
#define WS_PAPI_MAX_NUM_EVENTS 45
255255
#define WS_PAPI_EVENTS_ENV_VAR "WS_PAPI_EVENTS"

libworkstream_df/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void dump_events_ostv(int num_workers, wstream_df_thread_p* wstream_df_worker_th
385385
state_durations[state] += th->events[k].time - th->events[last_state_idx].time;
386386
total_duration += th->events[k].time - th->events[last_state_idx].time;
387387
} else {
388-
#ifdef TRACE_RT_INIT_STATE
388+
#if TRACE_RT_INIT_STATE
389389
/* First state change, by default the initial state is "initialization" */
390390
if(do_dump) {
391391
dsk_se.header.type = EVENT_TYPE_STATE;

libworkstream_df/wstream_df.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ void pre_main()
12791279
fprintf(stderr, "Cannot install signal handler for SIGUSR1\n");
12801280
#endif
12811281

1282-
#ifdef TRACE_RT_INIT_STATE
1282+
#if TRACE_RT_INIT_STATE
12831283
trace_state_change(current_thread, WORKER_STATE_RT_INIT);
12841284
#endif
12851285
}

0 commit comments

Comments
 (0)