Changeset 141735 in webkit
- Timestamp:
- Feb 3, 2013 9:11:35 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141733 r141735 1 2013-02-03 Kassy Coan <kassycoan@chromium.org> 2 3 Adds usage instrumentation for indexedDB 4 Includes new header file in project files 5 6 https://bugs.webkit.org/show_bug.cgi?id=107772 7 8 Reviewed by Tony Chang. 9 10 Currently untestable. Has zero effect apart from histogramming. 11 12 * GNUmakefile.list.am: 13 * Modules/indexeddb/IDBDatabase.cpp: 14 (WebCore::IDBDatabase::createObjectStore): 15 (WebCore::IDBDatabase::deleteObjectStore): 16 (WebCore::IDBDatabase::transaction): 17 * Modules/indexeddb/IDBFactory.cpp: 18 (WebCore::IDBFactory::openInternal): 19 (WebCore::IDBFactory::deleteDatabase): 20 * Modules/indexeddb/IDBHistograms.h: Added. 21 (WebCore): 22 * Target.pri: 23 * WebCore.gypi: 24 * WebCore.vcproj/WebCore.vcproj: 25 * WebCore.xcodeproj/project.pbxproj: 26 1 27 2013-02-03 Hayato Ito <hayato@chromium.org> 2 28 -
trunk/Source/WebCore/GNUmakefile.list.am
r141733 r141735 1879 1879 Source/WebCore/Modules/indexeddb/IDBFactory.cpp \ 1880 1880 Source/WebCore/Modules/indexeddb/IDBFactory.h \ 1881 Source/WebCore/Modules/indexeddb/IDBHistograms.h \ 1881 1882 Source/WebCore/Modules/indexeddb/IDBIndex.cpp \ 1882 1883 Source/WebCore/Modules/indexeddb/IDBIndex.h \ -
trunk/Source/WebCore/Modules/indexeddb/IDBDatabase.cpp
r141013 r141735 32 32 #include "EventQueue.h" 33 33 #include "ExceptionCode.h" 34 #include "HistogramSupport.h" 34 35 #include "IDBAny.h" 35 36 #include "IDBDatabaseCallbacks.h" … … 37 38 #include "IDBDatabaseException.h" 38 39 #include "IDBEventDispatcher.h" 40 #include "IDBHistograms.h" 39 41 #include "IDBIndex.h" 40 42 #include "IDBKeyPath.h" … … 158 160 PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionCode& ec) 159 161 { 162 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBCreateObjectStoreCall, IDBMethodsMax); 160 163 if (!m_versionChangeTransaction) { 161 164 ec = IDBDatabaseException::InvalidStateError; … … 196 199 void IDBDatabase::deleteObjectStore(const String& name, ExceptionCode& ec) 197 200 { 201 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBDeleteObjectStoreCall, IDBMethodsMax); 198 202 if (!m_versionChangeTransaction) { 199 203 ec = IDBDatabaseException::InvalidStateError; … … 218 222 PassRefPtr<IDBTransaction> IDBDatabase::transaction(ScriptExecutionContext* context, const Vector<String>& scope, const String& modeString, ExceptionCode& ec) 219 223 { 224 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBTransactionCall, IDBMethodsMax); 220 225 if (!scope.size()) { 221 226 ec = IDBDatabaseException::InvalidAccessError; -
trunk/Source/WebCore/Modules/indexeddb/IDBFactory.cpp
r141418 r141735 36 36 #include "Frame.h" 37 37 #include "GroupSettings.h" 38 #include "HistogramSupport.h" 38 39 #include "IDBBindingUtilities.h" 39 40 #include "IDBDatabase.h" … … 41 42 #include "IDBDatabaseException.h" 42 43 #include "IDBFactoryBackendInterface.h" 44 #include "IDBHistograms.h" 43 45 #include "IDBKey.h" 44 46 #include "IDBKeyRange.h" … … 123 125 PassRefPtr<IDBOpenDBRequest> IDBFactory::openInternal(ScriptExecutionContext* context, const String& name, int64_t version, ExceptionCode& ec) 124 126 { 127 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBOpenCall, IDBMethodsMax); 125 128 ASSERT(version >= 1 || version == IDBDatabaseMetadata::NoIntVersion); 126 129 if (name.isNull()) { … … 149 152 PassRefPtr<IDBOpenDBRequest> IDBFactory::deleteDatabase(ScriptExecutionContext* context, const String& name, ExceptionCode& ec) 150 153 { 154 HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBDeleteDatabaseCall, IDBMethodsMax); 151 155 if (name.isNull()) { 152 156 ec = TypeError; -
trunk/Source/WebCore/Target.pri
r141733 r141735 3081 3081 Modules/indexeddb/IDBFactoryBackendInterface.h \ 3082 3082 Modules/indexeddb/IDBFactoryBackendImpl.h \ 3083 Modules/indexeddb/IDBHistograms.h \ 3083 3084 Modules/indexeddb/IDBIndex.h \ 3084 3085 Modules/indexeddb/IDBKey.h \ -
trunk/Source/WebCore/WebCore.gypi
r141733 r141735 743 743 'Modules/indexeddb/IDBFactoryBackendInterface.cpp', 744 744 'Modules/indexeddb/IDBFactoryBackendInterface.h', 745 'Modules/indexeddb/IDBHistograms.h', 745 746 'Modules/indexeddb/IDBIndex.cpp', 746 747 'Modules/indexeddb/IDBIndex.h', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r141617 r141735 25095 25095 </File> 25096 25096 <File 25097 RelativePath="../Modules\indexeddb\IDBHistograms.h" 25098 > 25099 </File> 25100 <File 25097 25101 RelativePath="..\Modules\indexeddb\IDBIndex.cpp" 25098 25102 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r141733 r141735 1474 1474 4B6FA6F50C39E48C00087011 /* SmartReplace.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B6FA6F30C39E48C00087011 /* SmartReplace.cpp */; }; 1475 1475 4B6FA6F70C39E4A100087011 /* SmartReplaceCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B6FA6F60C39E4A100087011 /* SmartReplaceCF.cpp */; }; 1476 4B61737379636F616E277368 /* IDBHistograms.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B61737379636F616E277368 /* IDBHistograms.h */; }; 1476 1477 4B8AF4AA0B1CE02B00687690 /* ClipboardAccessPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B8AF4A90B1CE02B00687690 /* ClipboardAccessPolicy.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1477 1478 4BAE95B10B2FA9CE00AED8A0 /* EditorDeleteAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BAE95B00B2FA9CE00AED8A0 /* EditorDeleteAction.h */; settings = {ATTRIBUTES = (Private, ); }; };
Note: See TracChangeset
for help on using the changeset viewer.