Skip to content

Commit

Permalink
feat: enhance capture window env
Browse files Browse the repository at this point in the history
  • Loading branch information
tangliang-mt authored and tangliang-mt committed Sep 19, 2024
1 parent 4bb26ab commit e8296fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libkineto/src/MuptiActivityProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,10 @@ void MuptiActivityProfiler::stopTraceInternal(
LOG(ERROR) << "Invalid value for MT_TIMER_CAPTURE_WINDOW_LEN. Using default 60s.\n";
}
}
captureWindowEndTime_ = captureWindowStartTime_ + 1000000*captureWindowLen;
if (captureWindowLen > 0) {
captureWindowEndTime_ = captureWindowStartTime_ + 1000000*captureWindowLen;
}
LOG(INFO) << "MT_TIMER_GPU_EVENTS enabled, capture window length: " << captureWindowEndTime_ - captureWindowStartTime_ << "us";
}
#if defined(HAS_MUPTI) || defined(HAS_ROCTRACER)
if (!cpuOnly_) {
Expand Down

0 comments on commit e8296fa

Please sign in to comment.