File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
codeguru_profiler_agent/model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def end(self, value):
45
45
self ._validate_positive_number (value )
46
46
if value < self .start :
47
47
raise ValueError (
48
- "Profile end value must be greater than or equals to {}, got {}" .format (self .start , value ))
48
+ "Profile end value must be greater than or equal to {}, got {}" .format (self .start , value ))
49
49
self ._end = value
50
50
# this is the total cpu time spent in this application since start, not just the overhead
51
51
self .cpu_time_seconds = time .process_time () - self ._start_process_time
@@ -140,6 +140,6 @@ def average_thread_weight(self):
140
140
def __str__ (self ):
141
141
return "Profile(profiling_group_name=" + self .profiling_group_name \
142
142
+ ", start=" + to_iso (self .start ) \
143
- + ', end=' + "not set " if self .end is None else to_iso (self .end ) \
143
+ + ', end=' + "none " if self .end is None else to_iso (self .end ) \
144
144
+ ', duration_ms=' + str (self .get_active_millis_since_start ()) \
145
145
+ ')'
You can’t perform that action at this time.
0 commit comments