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

Side by Side Diff: tracing/tracing/value/diagnostics/reserved_infos.py

Issue 2998043002: Remove RelatedHistogramSet. (Closed)
Patch Set: Created 3 years, 4 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
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 class _Info(object): 5 class _Info(object):
6 6
7 def __init__(self, name, _type=None): 7 def __init__(self, name, _type=None):
8 self._name = name 8 self._name = name
9 self._type = _type 9 self._type = _type
10 10
(...skipping 15 matching lines...) Expand all
26 BUILDS = _Info('builds', 'GenericSet') 26 BUILDS = _Info('builds', 'GenericSet')
27 CATAPULT_REVISIONS = _Info('catapultRevisions', 'GenericSet') 27 CATAPULT_REVISIONS = _Info('catapultRevisions', 'GenericSet')
28 CHROMIUM_COMMIT_POSITIONS = _Info('chromiumCommitPositions', 'GenericSet') 28 CHROMIUM_COMMIT_POSITIONS = _Info('chromiumCommitPositions', 'GenericSet')
29 CHROMIUM_REVISIONS = _Info('chromiumRevisions', 'GenericSet') 29 CHROMIUM_REVISIONS = _Info('chromiumRevisions', 'GenericSet')
30 GPUS = _Info('gpus', 'GenericSet') 30 GPUS = _Info('gpus', 'GenericSet')
31 GROUPING_PATH = _Info('groupingPath') 31 GROUPING_PATH = _Info('groupingPath')
32 LABELS = _Info('labels', 'GenericSet') 32 LABELS = _Info('labels', 'GenericSet')
33 LOG_URLS = _Info('logUrls', 'GenericSet') 33 LOG_URLS = _Info('logUrls', 'GenericSet')
34 MASTERS = _Info('masters', 'GenericSet') 34 MASTERS = _Info('masters', 'GenericSet')
35 MEMORY_AMOUNTS = _Info('memoryAmounts', 'GenericSet') 35 MEMORY_AMOUNTS = _Info('memoryAmounts', 'GenericSet')
36 MERGED_FROM = _Info('mergedFrom', 'RelatedHistogramSet') 36 MERGED_FROM = _Info('mergedFrom', 'RelatedHistogramMap')
37 MERGED_TO = _Info('mergedTo', 'RelatedHistogramSet') 37 MERGED_TO = _Info('mergedTo', 'RelatedHistogramMap')
38 OS_NAMES = _Info('osNames', 'GenericSet') 38 OS_NAMES = _Info('osNames', 'GenericSet')
39 OS_VERSIONS = _Info('osVersions', 'GenericSet') 39 OS_VERSIONS = _Info('osVersions', 'GenericSet')
40 OWNERS = _Info('owners', 'GenericSet') 40 OWNERS = _Info('owners', 'GenericSet')
41 PRODUCT_VERSIONS = _Info('productVersions', 'GenericSet') 41 PRODUCT_VERSIONS = _Info('productVersions', 'GenericSet')
42 RELATED_NAMES = _Info('relatedNames', 'GenericSet') 42 RELATED_NAMES = _Info('relatedNames', 'GenericSet')
43 SKIA_REVISIONS = _Info('skiaRevisions', 'GenericSet') 43 SKIA_REVISIONS = _Info('skiaRevisions', 'GenericSet')
44 STORIES = _Info('stories', 'GenericSet') 44 STORIES = _Info('stories', 'GenericSet')
45 STORYSET_REPEATS = _Info('storysetRepeats', 'GenericSet') 45 STORYSET_REPEATS = _Info('storysetRepeats', 'GenericSet')
46 STORY_TAGS = _Info('storyTags', 'GenericSet') 46 STORY_TAGS = _Info('storyTags', 'GenericSet')
47 TAG_MAP = _Info('tagmap', 'TagMap') 47 TAG_MAP = _Info('tagmap', 'TagMap')
48 TRACE_START = _Info('traceStart', 'DateRange') 48 TRACE_START = _Info('traceStart', 'DateRange')
49 TRACE_URLS = _Info('traceUrls', 'GenericSet') 49 TRACE_URLS = _Info('traceUrls', 'GenericSet')
50 V8_COMMIT_POSITIONS = _Info('v8CommitPositions', 'DateRange') 50 V8_COMMIT_POSITIONS = _Info('v8CommitPositions', 'DateRange')
51 V8_REVISIONS = _Info('v8Revisions', 'GenericSet') 51 V8_REVISIONS = _Info('v8Revisions', 'GenericSet')
52 WEBRTC_REVISIONS = _Info('webrtcRevisions', 'GenericSet') 52 WEBRTC_REVISIONS = _Info('webrtcRevisions', 'GenericSet')
53 53
54 # DEPRECATED https://github.com/catapult-project/catapult/issues/3507 54 # DEPRECATED https://github.com/catapult-project/catapult/issues/3507
55 BUILDBOT = _Info('buildbot') # BuildbotInfo or MergedBuildbotInfo 55 BUILDBOT = _Info('buildbot') # BuildbotInfo or MergedBuildbotInfo
56 INTERACTION_RECORD = _Info('tir', 'GenericSet') 56 INTERACTION_RECORD = _Info('tir', 'GenericSet')
57 ITERATION = _Info('iteration') # Legacy name for TELEMETRY 57 ITERATION = _Info('iteration') # Legacy name for TELEMETRY
58 TELEMETRY = _Info('telemetry') # TelemetryInfo or MergedTelemetryInfo 58 TELEMETRY = _Info('telemetry') # TelemetryInfo or MergedTelemetryInfo
59 59
60 def GetTypeForName(name): 60 def GetTypeForName(name):
61 for info in globals().itervalues(): 61 for info in globals().itervalues():
62 if isinstance(info, _Info) and info.name == name: 62 if isinstance(info, _Info) and info.name == name:
63 return info.type 63 return info.type
OLDNEW
« no previous file with comments | « tracing/tracing/value/diagnostics/related_histogram_set.html ('k') | tracing/tracing/value/diagnostics/reserved_names.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698