Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions codeguru_profiler_agent/profiler_disabler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def is_overall_cpu_usage_limit_reached(self, profile=None):

if used_time_percentage >= cpu_limit_percentage:
logger.debug(self.timer.metrics)
logger.debug("Profile active seconds since start: {:.2f} s".format(profile.get_active_millis_since_start()/1000))
logger.info(
"Profiler overall cpu usage limit reached: {:.2f} % (limit: {:.2f} %), will stop CodeGuru Profiler."
.format(used_time_percentage, cpu_limit_percentage))
Expand All @@ -78,6 +79,7 @@ def is_sampling_cpu_usage_limit_reached(self, profile=None):

if used_time_percentage >= cpu_limit_percentage:
logger.debug(self.timer.metrics)
logger.debug("Sampling interval seconds: {:.2f} s".format(sampling_interval_seconds))
logger.info(
"Profiler sampling cpu usage limit reached: {:.2f} % (limit: {:.2f} %), will stop CodeGuru Profiler."
.format(used_time_percentage, cpu_limit_percentage))
Expand Down