Lines Matching refs:time
93 "--time-limit",
96 "print tasks only in time[s] window e.g"
97 " --time-limit 123.111:789.222(print all between 123.111 and 789.222)"
98 " --time-limit 123: (print all from 123)"
99 " --time-limit :456 (print all until incl. 456)",
233 The elapsed time between two occurrences of the same task is being tracked with the
236 The first half of the name signals the first time point of the
543 def schedule_in_at(self, time):
544 """set the time where the task was scheduled in"""
545 self._time_in = time
547 def schedule_out_at(self, time):
548 """set the time where the task was scheduled out"""
549 self._time_out = time
552 """return time where a given task was scheduled out"""
557 """return time where a given task was scheduled in"""
722 def _handle_task_finish(tid, cpu, time, perf_sample_dict):
734 task.schedule_out_at(time)
752 def _handle_task_start(tid, cpu, comm, time):
766 task.schedule_in_at(time)
792 sys.exit("Error: Filter and Limit at the same time active.")
797 "Error: No bound set for time limit. Please set bound by ':' e.g :123."
800 sys.exit("Error: Cannot set time limit and print summary")
861 def _is_within_timelimit(time):
863 Check if a time limit was given by parameter, if so ignore the rest. If not,
872 if time >= decimal.Decimal(lower_time_limit):
876 if time <= decimal.Decimal(upper_time_limit):
878 # quit if time exceeds upper limit. Good for big datasets
882 if (time >= decimal.Decimal(lower_time_limit) and
883 time <= decimal.Decimal(upper_time_limit)):
885 # quit if time exceeds upper limit. Good for big datasets
886 elif time > decimal.Decimal(upper_time_limit):
927 time = _time_to_internal(perf_sample_dict["sample"]["time"])
928 if not _is_within_timelimit(time):
929 # user specific --time-limit a:b set
933 _handle_task_finish(prev_pid, common_cpu, time, perf_sample_dict)
934 _handle_task_start(next_pid, common_cpu, next_comm, time)