Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: tools/android/loading/tracing_track.py

Issue 2763733002: tools/android/loading: rename tracing to tracing_track (Closed)
Patch Set: also rename the unittest Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/android/loading/tracing.py ('k') | tools/android/loading/tracing_track_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Monitor tracing events on chrome via chrome remote debugging.""" 5 """Monitor tracing events on chrome via chrome remote debugging."""
6 6
7 import itertools 7 import itertools
8 import logging 8 import logging
9 import operator 9 import operator
10 10
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 self._left = _IntervalTree(self.start, left_end, left_events) 562 self._left = _IntervalTree(self.start, left_end, left_events)
563 self._right = _IntervalTree(right_start, self.end, right_events) 563 self._right = _IntervalTree(right_start, self.end, right_events)
564 564
565 def _IsLeaf(self): 565 def _IsLeaf(self):
566 return self._left is None 566 return self._left is None
567 567
568 @classmethod 568 @classmethod
569 def _Overlaps(cls, event, start, end): 569 def _Overlaps(cls, event, start, end):
570 return (min(end, event.end_msec) - max(start, event.start_msec) > 0 570 return (min(end, event.end_msec) - max(start, event.start_msec) > 0
571 or start <= event.start_msec < end) # For instant events. 571 or start <= event.start_msec < end) # For instant events.
OLDNEW
« no previous file with comments | « tools/android/loading/tracing.py ('k') | tools/android/loading/tracing_track_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698