Home | History | Annotate | Download | only in tools

Lines Matching full:data

25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
61 """The main class that keeps the data used by the stats viewer."""
80 self.data = None
88 self.data = self.MountSharedData()
122 print "File %s is not stats data." % self.data_name
137 counters_in_use = self.data.CountersInUse()
142 for i in xrange(self.data.CountersInUse()):
143 counter = self.data.Counter(i)
187 for i in xrange(self.data.CountersInUse()):
188 counter = self.data.Counter(i)
295 """A utility class for reading data from the memory-mapped binary
298 def __init__(self, data):
302 data: A handle to the memory-mapped file, as returned by mmap.mmap.
304 self.data = data
312 word_str = self.data[index:index+4]
318 return self.data[index]
324 def __init__(self, data, offset):
328 data: the shared data access object containing the counter
331 self.data = data
336 return self.data.IntAt(self.offset)
342 current = self.data.ByteAt(index)
346 current = self.data.ByteAt(index)
354 def __init__(self, data):
358 data: the shared data access object
360 self.data = data
361 self.max_counters = data.IntAt(4)
362 self.max_name_size = data.IntAt(8)
366 return self.data.IntAt(12)
370 return Counter(self.data, 16 + index * self.CounterSize())
380 def __init__(self, data, name_offset, value_offset):
384 data: the shared data access object containing the counter
388 self.data = data
394 return self.data.IntAt(self.value_offset)
400 current = self.data.ByteAt(index)
404 current = self.data.ByteAt(index)
415 def __init__(self, data):
419 data: the shared data access object
421 self.data = data
422 self.max_counters = data.IntAt(8)
423 self.max_threads = data.IntAt(12)
432 if self.data.ByteAt(self.counter_names_offset + i * self._NAME_SIZE) == 0:
438 return ChromeCounter(self.data,
454 print "Usage: stats-viewer.py <stats data>|<test_shell pid>"