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

Side by Side Diff: tools/perf/benchmarks/blob_storage.py

Issue 1104053006: [Storage] Blob Storage perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry import benchmark
5 from telemetry.core.platform import tracing_category_filter
6 from telemetry.web_perf import timeline_based_measurement
7
8 import page_sets
9
10
11 BLOB_CATEGORY = 'Blob'
12 TIMELINE_REQUIRED_CATEGORY = 'blink.console'
13
14
15 class BlobStorage(benchmark.Benchmark):
16 """Timeline based measurement benchmark for Blob Storage."""
17
18 page_set = page_sets.BlobWorkshopPageSet
19
20 def CreateTimelineBasedMeasurementOptions(self):
21 cat_filter = tracing_category_filter.CreateMinimalOverheadFilter()
22 cat_filter.AddIncludedCategory(BLOB_CATEGORY)
23 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY)
24
25 return timeline_based_measurement.Options(
26 overhead_level=cat_filter)
27
28 @classmethod
29 def Name(cls):
30 return 'blob_storage.blob_storage'
31
32 @classmethod
33 def ValueCanBeAddedPredicate(cls, value, is_first_result):
34 return (value.name.startswith('Action_CreateBlob') or
nednguyen 2015/05/28 05:10:12 I thought we want to filter on "blob_writes", "blo
dmurph 2015/05/29 05:05:47 The name contains the interaction and the result n
35 value.name.startswith('Action_ReadBlobs') or
36 'BlobCreateAndRead' in value.name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698