diff options
author | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 20:26:49 +0000 |
---|---|---|
committer | rdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 20:26:49 +0000 |
commit | 42204e2c1653a481fdd94acd9d1692a4f7c0e767 (patch) | |
tree | c8bf6697c6026a6de2b8f6dbf7d5d6f20480b88c | |
parent | 4cc7f1d81a2e9a88a25bc211af457ca7af200d0e (diff) | |
download | chromium_src-42204e2c1653a481fdd94acd9d1692a4f7c0e767.zip chromium_src-42204e2c1653a481fdd94acd9d1692a4f7c0e767.tar.gz chromium_src-42204e2c1653a481fdd94acd9d1692a4f7c0e767.tar.bz2 |
CPM Event Structure
This is the basic JSON for the events to be stored in the CPM Database. Later CLs will utilize these class.
BUG=130212
TEST=NONE
Review URL: https://chromiumcodereview.appspot.com/10443076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140597 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/performance_monitor/events.json | 127 | ||||
-rw-r--r-- | chrome/browser/performance_monitor/performance_monitor.gyp | 26 | ||||
-rw-r--r-- | chrome/chrome_browser.gypi | 1 |
3 files changed, 154 insertions, 0 deletions
diff --git a/chrome/browser/performance_monitor/events.json b/chrome/browser/performance_monitor/events.json new file mode 100644 index 0000000..81eea9e --- /dev/null +++ b/chrome/browser/performance_monitor/events.json @@ -0,0 +1,127 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +[ + { + "namespace": "events", + "types": [ + { + "id": "ExtensionInstall", + "type": "object", + "description": "The event to describe the installation of an extension in Chrome.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "extension_id": {"type": "string", "description": "The extension's id."}, + "extension_name": {"type": "string", "description": "The extension's name."}, + "extension_url": {"type": "string", "description": "The extension's url."}, + "extension_location": {"type": "integer", "description": "The extension's install location."}, + "extension_version": {"type": "string", "description": "The string reprepresentation of the extension's version."}, + "extension_description": {"type": "string", "description": "The extension's description."} + } + }, + { + "id": "ExtensionUnload", + "type": "object", + "description": "The event to describe the unloading of an extension in Chrome.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "extension_id": {"type": "string", "description": "The extension's id."}, + "extension_name": {"type": "string", "description": "The extension's name."}, + "extension_url": {"type": "string", "description": "The extension's url."}, + "extension_location": {"type": "integer", "description": "The extension's install location."}, + "extension_version": {"type": "string", "description": "The string reprepresentation of the extension's version."}, + "extension_description": {"type": "string", "description": "The extension's description."}, + "unload_reason": {"type": "integer", "description": "The type of unload performed."} + } + }, + { + "id": "ExtensionUninstall", + "type": "object", + "description": "The event to describe the uninstallation of an extension in Chrome.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "extension_id": {"type": "string", "description": "The extension's id."}, + "extension_name": {"type": "string", "description": "The extension's name."}, + "extension_url": {"type": "string", "description": "The extension's url."}, + "extension_location": {"type": "integer", "description": "The extension's install location."}, + "extension_version": {"type": "string", "description": "The string reprepresentation of the extension's version."}, + "extension_description": {"type": "string", "description": "The extension's description."} + } + }, + { + "id": "ExtensionEnable", + "type": "object", + "description": "The event to describe the uninstallation of an extension in Chrome.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "extension_id": {"type": "string", "description": "The extension's id."}, + "extension_name": {"type": "string", "description": "The extension's name."}, + "extension_url": {"type": "string", "description": "The extension's url."}, + "extension_location": {"type": "integer", "description": "The extension's install location."}, + "extension_version": {"type": "string", "description": "The string reprepresentation of the extension's version."}, + "extension_description": {"type": "string", "description": "The extension's description."} + } + }, + { + "id": "ExtensionUpdate", + "type": "object", + "description": "The event to describe the uninstallation of an extension in Chrome.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "extension_id": {"type": "string", "description": "The extension's id."}, + "extension_name": {"type": "string", "description": "The extension's name."}, + "extension_url": {"type": "string", "description": "The extension's url."}, + "extension_location": {"type": "integer", "description": "The extension's install location."}, + "extension_version": {"type": "string", "description": "The string reprepresentation of the extension's version."}, + "extension_description": {"type": "string", "description": "The extension's description."} + } + }, + { + "id": "ChromeUpdate", + "type": "object", + "description": "The event to describe an update to Chrome; this will be recognized on startup by a change in the version number.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "previous_version": {"type": "string", "description": "The string representation of the previous Chrome version."}, + "current_version": {"type": "string", "description": "The string representation of the current Chrome version."} + } + }, + { + "id": "RendererCrash", + "type": "object", + "description": "The event to represent a renderer crash.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "url": {"type": "string", "description": "The crash url."} + } + }, + { + "id": "RendererFreeze", + "type": "object", + "description": "The event to represent a frozen renderer (when the frozen tab popup comes up).", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."}, + "url": {"type": "string", "description": "The crash url."} + } + }, + { + "id": "UncleanShutdown", + "type": "object", + "description": "The event to represent an unclean shutdown.", + "properties": { + "type": {"type": "integer", "description": "The type of the event."}, + "time": {"type": "number", "description": "The time at which the event was recorded."} + } + } + ] + } +] diff --git a/chrome/browser/performance_monitor/performance_monitor.gyp b/chrome/browser/performance_monitor/performance_monitor.gyp new file mode 100644 index 0000000..08fe90e --- /dev/null +++ b/chrome/browser/performance_monitor/performance_monitor.gyp @@ -0,0 +1,26 @@ +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'performance_monitor', + 'type': 'static_library', + 'sources': [ + '<@(json_schema_files)', + ], + 'includes': [ + '../../../build/json_schema_compile.gypi', + ], + 'variables': { + 'chromium_code': 1, + 'json_schema_files': [ + 'events.json', + ], + 'cc_dir': 'chrome/browser/performance_monitor', + 'root_namespace': 'performance_monitor', + }, + }, + ], +} diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index 9203ac4..ebe7c97 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -13,6 +13,7 @@ 'app/policy/cloud_policy_codegen.gyp:policy', 'autofill_regexes', 'browser_extensions', + 'browser/performance_monitor/performance_monitor.gyp:performance_monitor', '../sync/protocol/sync_proto.gyp:sync_proto', 'cert_logger_proto', 'chrome_resources.gyp:chrome_extra_resources', |