diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-16 18:18:06 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-16 18:18:06 +0000 |
commit | 27bd7f7394ff8eae3d2ae9b556d1f02c72ac6f52 (patch) | |
tree | 2be5e5027a713ecd3ccd01d98bc56b565ecec7af /tools | |
parent | 8e299aa93e66370ad703ae477e86083b9c104f34 (diff) | |
download | chromium_src-27bd7f7394ff8eae3d2ae9b556d1f02c72ac6f52.zip chromium_src-27bd7f7394ff8eae3d2ae9b556d1f02c72ac6f52.tar.gz chromium_src-27bd7f7394ff8eae3d2ae9b556d1f02c72ac6f52.tar.bz2 |
Copy ldb files in ChromiumEnv for the purpose of backups.
If it is later detected that an ldb file has gone missing it
will be restored from its backup.
BUG=239999
R=isherman@chromium.org, jsbell@chromium.org
Review URL: https://codereview.chromium.org/27022005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/metrics/histograms/histograms.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index ec12211..de51a0a9 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml @@ -5433,6 +5433,9 @@ other types of suffix sets. </histogram> <histogram name="LevelDBEnv.All.SafeThreadAccess" units="accesses"> + <obsolete> + Deprecated 2013-10. No thread-unsafety was found. + </obsolete> <summary> Linux and CrOS use unlocked_stdio(3). If it is used unsafely, record it here. If there is no record of unsafety after chrome 29 has been in the @@ -5495,6 +5498,13 @@ other types of suffix sets. </summary> </histogram> +<histogram name="LevelDBEnv.IDB.MissingFiles" units="files"> + <summary> + Number of backup files found without corresponding ldb files. As measured by + GetChildren when used in IndexedDB. + </summary> +</histogram> + <histogram name="LevelDBEnv.IDB.RetryRecoveredFromErrorIn" enum="PlatformFileError"> <summary> @@ -5503,6 +5513,13 @@ other types of suffix sets. </summary> </histogram> +<histogram name="LevelDBEnv.IDB.Table" enum="BooleanSuccess"> + <summary> + Success indicates a successful backup or restore operation for .ldb table + files when used in IndexedDB. + </summary> +</histogram> + <histogram name="LevelDBEnv.IDB.TimeTo" units="milliseconds"> <obsolete> Deprecated 2013-04. As of m28 use LevelDBEnv.IDB.TimeUntilSuccessFor. @@ -5567,6 +5584,13 @@ other types of suffix sets. </summary> </histogram> +<histogram name="LevelDBEnv.MissingFiles" units="files"> + <summary> + Number of backup files found without corresponding ldb files. As measured by + GetChildren when used in LevelDB clients other than IndexedDB. + </summary> +</histogram> + <histogram name="LevelDBEnv.RetryRecoveredFromErrorIn" enum="PlatformFileError"> <summary> When Non-IDB LevelDBEnv successfully retries an operation that had failed, @@ -5574,6 +5598,13 @@ other types of suffix sets. </summary> </histogram> +<histogram name="LevelDBEnv.Table" enum="BooleanSuccess"> + <summary> + Success indicates a successful backup or restore operation for .ldb table + files when used by LevelDB clients other than IndexedDB. + </summary> +</histogram> + <histogram name="LevelDBEnv.TimeTo" units="milliseconds"> <obsolete> Deprecated 2013-04. As of m28 use LevelDBEnv.TimeUntilSuccessFor. @@ -28189,6 +28220,13 @@ other types of suffix sets. <affected-histogram name="Renderer4.StartToFinish"/> </fieldtrial> +<fieldtrial name="LevelDBEnvBackupRestore" separator=""> + <group name="Backup" label="Backing up an ldb file."/> + <group name="Restore" label="Restoring an ldb file."/> + <affected-histogram name="LevelDBEnv.IDB.Table"/> + <affected-histogram name="LevelDBEnv.Table"/> +</fieldtrial> + <fieldtrial name="LevelDBEnvMaxFDs" separator="."> <group name="Success" label="This histogram shows the limit when open succeeded."/> |