Home
last modified time | relevance | path

Searched refs:snapshot (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/external/libchrome/base/debug/
Dactivity_tracker_unittest.cc158 ThreadActivityTracker::Snapshot snapshot; in TEST_F() local
160 ASSERT_TRUE(tracker->CreateSnapshot(&snapshot)); in TEST_F()
161 ASSERT_EQ(0U, snapshot.activity_stack_depth); in TEST_F()
162 ASSERT_EQ(0U, snapshot.activity_stack.size()); in TEST_F()
167 ASSERT_TRUE(tracker->CreateSnapshot(&snapshot)); in TEST_F()
168 ASSERT_EQ(1U, snapshot.activity_stack_depth); in TEST_F()
169 ASSERT_EQ(1U, snapshot.activity_stack.size()); in TEST_F()
170 EXPECT_NE(0, snapshot.activity_stack[0].time_internal); in TEST_F()
171 EXPECT_EQ(Activity::ACT_TASK, snapshot.activity_stack[0].activity_type); in TEST_F()
173 snapshot.activity_stack[0].origin_address); in TEST_F()
[all …]
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator_unittest.cc230 std::unique_ptr<HistogramSamples> snapshot = found->SnapshotSamples(); in TEST_F() local
231 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
232 EXPECT_EQ(1, snapshot->GetCount(3)); in TEST_F()
233 EXPECT_EQ(5, snapshot->GetCount(1)); in TEST_F()
234 EXPECT_EQ(1, snapshot->GetCount(4)); in TEST_F()
235 EXPECT_EQ(1, snapshot->GetCount(6)); in TEST_F()
239 snapshot = found->SnapshotSamples(); in TEST_F()
240 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
241 EXPECT_EQ(1, snapshot->GetCount(3)); in TEST_F()
242 EXPECT_EQ(5, snapshot->GetCount(1)); in TEST_F()
[all …]
Dsparse_histogram.cc121 std::unique_ptr<SampleMap> snapshot(new SampleMap(name_hash())); in SnapshotSamples() local
124 snapshot->Add(*samples_); in SnapshotSamples()
125 return std::move(snapshot); in SnapshotSamples()
131 std::unique_ptr<SampleMap> snapshot(new SampleMap(name_hash())); in SnapshotDelta() local
133 snapshot->Add(*samples_); in SnapshotDelta()
136 snapshot->Subtract(*logged_samples_); in SnapshotDelta()
137 logged_samples_->Add(*snapshot); in SnapshotDelta()
138 return std::move(snapshot); in SnapshotDelta()
145 std::unique_ptr<SampleMap> snapshot(new SampleMap(name_hash())); in SnapshotFinalDelta() local
147 snapshot->Add(*samples_); in SnapshotFinalDelta()
[all …]
Dstatistics_recorder.cc217 Histograms snapshot; in WriteHTMLGraph() local
218 GetSnapshot(query, &snapshot); in WriteHTMLGraph()
219 std::sort(snapshot.begin(), snapshot.end(), &HistogramNameLesser); in WriteHTMLGraph()
220 for (const HistogramBase* histogram : snapshot) { in WriteHTMLGraph()
236 Histograms snapshot; in WriteGraph() local
237 GetSnapshot(query, &snapshot); in WriteGraph()
238 std::sort(snapshot.begin(), snapshot.end(), &HistogramNameLesser); in WriteGraph()
239 for (const HistogramBase* histogram : snapshot) { in WriteGraph()
257 Histograms snapshot; in ToJSON() local
258 GetSnapshot(query, &snapshot); in ToJSON()
[all …]
Dhistogram_delta_serialization_unittest.cc38 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST() local
39 EXPECT_EQ(1, snapshot->GetCount(1)); in TEST()
40 EXPECT_EQ(1, snapshot->GetCount(10)); in TEST()
41 EXPECT_EQ(1, snapshot->GetCount(100)); in TEST()
42 EXPECT_EQ(1, snapshot->GetCount(1000)); in TEST()
Dsparse_histogram_unittest.cc96 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() local
97 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
98 EXPECT_EQ(0, snapshot->sum()); in TEST_P()
115 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() local
116 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
117 EXPECT_EQ(0, snapshot->sum()); in TEST_P()
134 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() local
135 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
136 EXPECT_EQ(0, snapshot->sum()); in TEST_P()
Dstatistics_recorder_unittest.cc255 StatisticsRecorder::Histograms snapshot; in TEST_P() local
256 StatisticsRecorder::GetSnapshot("Test", &snapshot); in TEST_P()
257 EXPECT_EQ(3u, snapshot.size()); in TEST_P()
259 snapshot.clear(); in TEST_P()
260 StatisticsRecorder::GetSnapshot("1", &snapshot); in TEST_P()
261 EXPECT_EQ(1u, snapshot.size()); in TEST_P()
263 snapshot.clear(); in TEST_P()
264 StatisticsRecorder::GetSnapshot("hello", &snapshot); in TEST_P()
265 EXPECT_EQ(0u, snapshot.size()); in TEST_P()
716 std::unique_ptr<HistogramSamples> snapshot = found->SnapshotSamples(); in TEST_P() local
[all …]
Dhistogram_unittest.cc487 std::unique_ptr<SampleVector> snapshot = histogram->SnapshotSampleVector(); in TEST_P() local
489 histogram->FindCorruption(*snapshot)); in TEST_P()
490 EXPECT_EQ(2, snapshot->redundant_count()); in TEST_P()
491 EXPECT_EQ(2, snapshot->TotalCount()); in TEST_P()
493 snapshot->counts_[3] += 100; // Sample count won't match redundant count. in TEST_P()
495 histogram->FindCorruption(*snapshot)); in TEST_P()
496 snapshot->counts_[2] -= 200; in TEST_P()
498 histogram->FindCorruption(*snapshot)); in TEST_P()
501 snapshot->counts_[1] += 100; in TEST_P()
503 histogram->FindCorruption(*snapshot)); in TEST_P()
[all …]
Dhistogram.cc444 std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector(); in SnapshotDelta() local
448 logged_samples_.swap(snapshot); in SnapshotDelta()
453 snapshot->Subtract(*logged_samples_); in SnapshotDelta()
454 logged_samples_->Add(*snapshot); in SnapshotDelta()
455 return snapshot; in SnapshotDelta()
462 std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector(); in SnapshotFinalDelta() local
466 snapshot->Subtract(*logged_samples_); in SnapshotFinalDelta()
467 return snapshot; in SnapshotFinalDelta()
598 std::unique_ptr<SampleVector> snapshot = SnapshotSampleVector(); in WriteAsciiImpl() local
599 Count sample_count = snapshot->TotalCount(); in WriteAsciiImpl()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DSegmentSharingTest.java34 ByteString snapshot = new Buffer().snapshot(); in snapshotOfEmptyBuffer() local
35 assertEquivalent(snapshot, ByteString.EMPTY); in snapshotOfEmptyBuffer()
39 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotsAreEquivalent()
40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot()); in snapshotsAreEquivalent()
41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot()); in snapshotsAreEquivalent()
46 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotGetByte()
66 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotWriteToOutputStream()
78 ByteString snapshot = buffer.snapshot(); in snapshotSegmentsAreNotRecycled() local
79 assertEquals(xs + ys + zs, snapshot.utf8()); in snapshotSegmentsAreNotRecycled()
110 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); in snapshotJavaSerialization()
[all …]
/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py60 snapshot = tracemalloc.Snapshot(raw_traces, traceback_limit)
74 return (snapshot, snapshot2)
239 snapshot = tracemalloc.take_snapshot()
242 snapshot.dump(support.TESTFN)
247 self.assertEqual(snapshot2.traces, snapshot.traces)
259 snapshot = tracemalloc.take_snapshot()
260 snapshot.test_attr = "new"
261 snapshot.dump(support.TESTFN)
313 snapshot = tracemalloc.take_snapshot()
314 self.assertEqual(snapshot.traceback_limit, 5)
[all …]
/external/valgrind/massif/
Dms_main.c90 snapshot=0
98 snapshot=1
122 - each snapshot specifies an x-axis value and one or more y-axis values.
654 static Bool is_snapshot_in_use(Snapshot* snapshot) in is_snapshot_in_use() argument
656 if (Unused == snapshot->kind) { in is_snapshot_in_use()
658 tl_assert(snapshot->time == UNUSED_SNAPSHOT_TIME); in is_snapshot_in_use()
659 tl_assert(snapshot->heap_extra_szB == 0); in is_snapshot_in_use()
660 tl_assert(snapshot->heap_szB == 0); in is_snapshot_in_use()
661 tl_assert(snapshot->stacks_szB == 0); in is_snapshot_in_use()
662 tl_assert(snapshot->xt == NULL); in is_snapshot_in_use()
[all …]
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dprocfs_utils.cc91 bool ReadOomStats(ProcessSnapshot* snapshot) { in ReadOomStats() argument
93 if (ReadProcFileTrimmed(snapshot->pid, "oom_score", buf, sizeof(buf))) in ReadOomStats()
94 snapshot->oom_score = atoi(buf); in ReadOomStats()
97 if (ReadProcFileTrimmed(snapshot->pid, "oom_score_adj", buf, sizeof(buf))) in ReadOomStats()
98 snapshot->oom_score_adj = atoi(buf); in ReadOomStats()
104 bool ReadPageFaultsAndCpuTimeStats(ProcessSnapshot* snapshot) { in ReadPageFaultsAndCpuTimeStats() argument
106 if (!ReadProcFileTrimmed(snapshot->pid, "stat", buf, sizeof(buf))) in ReadPageFaultsAndCpuTimeStats()
110 &snapshot->minor_faults, &snapshot->major_faults, in ReadPageFaultsAndCpuTimeStats()
111 &snapshot->utime, &snapshot->stime); in ReadPageFaultsAndCpuTimeStats()
/external/valgrind/massif/tests/
Dculling1.stderr.exp226 Massif: (skipped 1 snapshot)
228 Massif: (skipped 1 snapshot)
230 Massif: (skipped 1 snapshot)
232 Massif: (skipped 1 snapshot)
234 Massif: (skipped 1 snapshot)
236 Massif: (skipped 1 snapshot)
238 Massif: (skipped 1 snapshot)
240 Massif: (skipped 1 snapshot)
242 Massif: (skipped 1 snapshot)
244 Massif: (skipped 1 snapshot)
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DAbstractService.java140 private volatile StateSnapshot snapshot = new StateSnapshot(NEW);
172 snapshot = new StateSnapshot(STARTING);
194 snapshot = new StateSnapshot(TERMINATED);
198 snapshot = new StateSnapshot(STARTING, true, null);
202 snapshot = new StateSnapshot(STOPPING);
304 if (snapshot.state != STARTING) {
306 "Cannot notifyStarted() when the service is " + snapshot.state);
311 if (snapshot.shutdownWhenStartupFinishes) {
312 snapshot = new StateSnapshot(STOPPING);
317 snapshot = new StateSnapshot(RUNNING);
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java163 DiskLruCache.Snapshot snapshot = cache.get("k1"); in writeAndReadEntry() local
164 assertSnapshotValue(snapshot, 0, "ABC"); in writeAndReadEntry()
165 assertSnapshotValue(snapshot, 1, "DE"); in writeAndReadEntry()
176 DiskLruCache.Snapshot snapshot = cache.get("k1"); in readAndWriteEntryAcrossCacheOpenAndClose() local
177 assertSnapshotValue(snapshot, 0, "A"); in readAndWriteEntryAcrossCacheOpenAndClose()
178 assertSnapshotValue(snapshot, 1, "B"); in readAndWriteEntryAcrossCacheOpenAndClose()
179 snapshot.close(); in readAndWriteEntryAcrossCacheOpenAndClose()
190 DiskLruCache.Snapshot snapshot = cache.get("k1"); in readAndWriteEntryWithoutProperClose() local
191 assertSnapshotValue(snapshot, 0, "A"); in readAndWriteEntryWithoutProperClose()
192 assertSnapshotValue(snapshot, 1, "B"); in readAndWriteEntryWithoutProperClose()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java181 DiskLruCache.Snapshot snapshot; in get() local
184 snapshot = cache.get(key); in get()
185 if (snapshot == null) { in get()
194 entry = new Entry(snapshot.getSource(ENTRY_METADATA)); in get()
196 Util.closeQuietly(snapshot); in get()
200 Response response = entry.response(request, snapshot); in get()
253 DiskLruCache.Snapshot snapshot = ((CacheResponseBody) cached.body()).snapshot; in update() local
256 editor = snapshot.edit(); // Returns null if snapshot is not current. in update()
331 DiskLruCache.Snapshot snapshot = delegate.next(); in urls() local
333 BufferedSource metadata = Okio.buffer(snapshot.getSource(ENTRY_METADATA)); in urls()
[all …]
/external/webrtc/tools/cpu/
Dcpu_mon.py46 snapshot = CpuSnapshot(label)
47 snapshot.Capture(sample_count)
49 return snapshot
63 snapshot = GrabCpuSamples(sample_count)
64 if snapshot == None:
66 snapshots.append(snapshot)
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-snapshot.tc27 if [ ! -f snapshot ]; then
35 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
42 echo 0 > snapshot
47 grep sched_process_fork snapshot > /dev/null || \
51 echo 0 > snapshot
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_builder.c471 struct ilo_builder_snapshot *snapshot) in ilo_builder_batch_snapshot() argument
476 snapshot->reloc_count = intel_bo_get_reloc_count(writer->bo); in ilo_builder_batch_snapshot()
477 snapshot->used = writer->used; in ilo_builder_batch_snapshot()
478 snapshot->stolen = writer->stolen; in ilo_builder_batch_snapshot()
479 snapshot->item_used = writer->item_used; in ilo_builder_batch_snapshot()
488 const struct ilo_builder_snapshot *snapshot) in ilo_builder_batch_restore() argument
493 intel_bo_truncate_relocs(writer->bo, snapshot->reloc_count); in ilo_builder_batch_restore()
494 writer->used = snapshot->used; in ilo_builder_batch_restore()
495 writer->stolen = snapshot->stolen; in ilo_builder_batch_restore()
496 writer->item_used = snapshot->item_used; in ilo_builder_batch_restore()
/external/v8/src/profiler/
Dheap-snapshot-generator-inl.h15 return &snapshot()->entries()[from_index()]; in from()
20 return snapshot()->profiler()->isolate(); in isolate()
24 HeapSnapshot* HeapGraphEdge::snapshot() const { in snapshot() function
25 return to_entry_->snapshot(); in snapshot()
/external/python/cpython3/Doc/library/
Dtracemalloc.rst47 snapshot = tracemalloc.take_snapshot()
48 top_stats = snapshot.statistics('lineno')
111 tests, when the previous snapshot was taken. Similarly, the :mod:`linecache`
113 of it since the previous snapshot.
116 the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the
117 :meth:`Snapshot.load` method reload the snapshot.
132 snapshot = tracemalloc.take_snapshot()
133 top_stats = snapshot.statistics('traceback')
195 def display_top(snapshot, key_type='lineno', limit=10):
196 snapshot = snapshot.filter_traces((
[all …]
/external/autotest/site_utils/lxc/
Dcontainer_factory.py23 snapshot=True, force_cleanup=False, argument
47 self._snapshot = snapshot
103 snapshot=use_snapshot,
115 snapshot=False,
/external/libpcap/
Dpcap-snoop.c110 if (cc == (p->snapshot + sizeof(struct snoopheader)) && in pcap_read_snoop()
111 (datalen < p->snapshot)) in pcap_read_snoop()
114 caplen = (datalen < p->snapshot) ? datalen : p->snapshot; in pcap_read_snoop()
356 if (p->snapshot > ifr.ifr_mtu + ll_hdrlen) in pcap_activate_snoop()
357 p->snapshot = ifr.ifr_mtu + ll_hdrlen; in pcap_activate_snoop()
365 snooplen = p->snapshot - ll_hdrlen; in pcap_activate_snoop()
/external/valgrind/gdbserver_tests/
Dmssnapshot.stderrB.exp18 snapshot [<filename>]
20 takes a snapshot (or a detailed snapshot)
24 saves all snapshot(s) taken so far in <filename>

12345678910>>...13