Home
last modified time | relevance | path

Searched refs:snapshot2 (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/metrics/
Dsparse_histogram_unittest.cc106 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() local
107 EXPECT_EQ(3, snapshot2->TotalCount()); in TEST_P()
108 EXPECT_EQ(2, snapshot2->GetCount(100)); in TEST_P()
109 EXPECT_EQ(1, snapshot2->GetCount(101)); in TEST_P()
125 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() local
126 EXPECT_EQ(55, snapshot2->TotalCount()); in TEST_P()
127 EXPECT_EQ(30, snapshot2->GetCount(100)); in TEST_P()
128 EXPECT_EQ(25, snapshot2->GetCount(101)); in TEST_P()
144 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() local
145 EXPECT_EQ(55, snapshot2->TotalCount()); in TEST_P()
[all …]
Dhistogram_delta_serialization_unittest.cc48 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST() local
49 EXPECT_EQ(2, snapshot2->GetCount(1)); in TEST()
50 EXPECT_EQ(2, snapshot2->GetCount(10)); in TEST()
51 EXPECT_EQ(2, snapshot2->GetCount(100)); in TEST()
52 EXPECT_EQ(2, snapshot2->GetCount(1000)); in TEST()
/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py69 snapshot2 = tracemalloc.Snapshot(raw_traces2, traceback_limit)
71 return (snapshot, snapshot2)
246 snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
247 self.assertEqual(snapshot2.traces, snapshot.traces)
265 snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
266 self.assertEqual(snapshot2.test_attr, "new")
323 snapshot, snapshot2 = create_snapshots()
361 snapshot, snapshot2 = create_snapshots()
388 snapshot, snapshot2 = create_snapshots()
409 snapshot, snapshot2 = create_snapshots()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java304 DiskLruCache.Snapshot snapshot2 = cache.get("k1"); in readAndWriteOverlapsMaintainConsistency() local
305 assertSnapshotValue(snapshot2, 0, "CCcc"); in readAndWriteOverlapsMaintainConsistency()
306 assertSnapshotValue(snapshot2, 1, "DDdd"); in readAndWriteOverlapsMaintainConsistency()
307 snapshot2.close(); in readAndWriteOverlapsMaintainConsistency()
/external/python/cpython3/Doc/library/
Dtracemalloc.rst87 snapshot2 = tracemalloc.take_snapshot()
89 top_stats = snapshot2.compare_to(snapshot1, 'lineno')