File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,9 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
350
350
static const size_t largeArchive = 10 * 1024 * 1024 ;
351
351
static std::atomic_uint64_t totalBytes = 0 ;
352
352
std::atomic_int index = 0 , included = 0 ;
353
+ #ifndef NDEBUG
353
354
auto t0 = high_resolution_clock::now ();
355
+ #endif
354
356
355
357
parallelFor (0 , config->readThreads , [&](size_t I) {
356
358
while (true ) {
@@ -371,11 +373,13 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
371
373
}
372
374
});
373
375
374
- LLVM_ATTRIBUTE_UNUSED auto dt = high_resolution_clock::now () - t0;
375
- LLVM_DEBUG (if (Process::GetEnv (" LLD_MULTI_THREAD_PAGE" )) std::cerr
376
- << " multiThreadedPageIn " << totalBytes << " /" << included << " /"
377
- << deferred.size () << " /" << std::setprecision (4 )
378
- << duration_cast<milliseconds>(dt).count () / 1000 . << " \n " );
376
+ #ifndef NDEBUG
377
+ auto dt = high_resolution_clock::now () - t0;
378
+ if (Process::GetEnv (" LLD_MULTI_THREAD_PAGE" ))
379
+ std::cerr << " multiThreadedPageIn " << totalBytes << " /" << included << " /"
380
+ << deferred.size () << " /" << std::setprecision (4 )
381
+ << duration_cast<milliseconds>(dt).count () / 1000 . << " \n " ;
382
+ #endif
379
383
}
380
384
381
385
static void multiThreadedPageIn (const DeferredFiles &deferred,
You can’t perform that action at this time.
0 commit comments