| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 result.numberOfLiveAudioNodes = | 155 result.numberOfLiveAudioNodes = |
| 156 InstanceCounters::counterValue(InstanceCounters::AudioHandlerCounter); | 156 InstanceCounters::counterValue(InstanceCounters::AudioHandlerCounter); |
| 157 result.numberOfLiveDocuments = | 157 result.numberOfLiveDocuments = |
| 158 InstanceCounters::counterValue(InstanceCounters::DocumentCounter); | 158 InstanceCounters::counterValue(InstanceCounters::DocumentCounter); |
| 159 result.numberOfLiveNodes = | 159 result.numberOfLiveNodes = |
| 160 InstanceCounters::counterValue(InstanceCounters::NodeCounter); | 160 InstanceCounters::counterValue(InstanceCounters::NodeCounter); |
| 161 result.numberOfLiveLayoutObjects = | 161 result.numberOfLiveLayoutObjects = |
| 162 InstanceCounters::counterValue(InstanceCounters::LayoutObjectCounter); | 162 InstanceCounters::counterValue(InstanceCounters::LayoutObjectCounter); |
| 163 result.numberOfLiveResources = | 163 result.numberOfLiveResources = |
| 164 InstanceCounters::counterValue(InstanceCounters::ResourceCounter); | 164 InstanceCounters::counterValue(InstanceCounters::ResourceCounter); |
| 165 result.numberOfLiveActiveDOMObjects = | 165 result.numberOfLiveSuspendableObjects = InstanceCounters::counterValue( |
| 166 InstanceCounters::counterValue(InstanceCounters::ActiveDOMObjectCounter); | 166 InstanceCounters::SuspendableObjectCounter); |
| 167 result.numberOfLiveScriptPromises = | 167 result.numberOfLiveScriptPromises = |
| 168 InstanceCounters::counterValue(InstanceCounters::ScriptPromiseCounter); | 168 InstanceCounters::counterValue(InstanceCounters::ScriptPromiseCounter); |
| 169 result.numberOfLiveFrames = | 169 result.numberOfLiveFrames = |
| 170 InstanceCounters::counterValue(InstanceCounters::FrameCounter); | 170 InstanceCounters::counterValue(InstanceCounters::FrameCounter); |
| 171 result.numberOfLiveV8PerContextData = | 171 result.numberOfLiveV8PerContextData = |
| 172 InstanceCounters::counterValue(InstanceCounters::V8PerContextDataCounter); | 172 InstanceCounters::counterValue(InstanceCounters::V8PerContextDataCounter); |
| 173 result.numberOfWorkerGlobalScopes = InstanceCounters::counterValue( | 173 result.numberOfWorkerGlobalScopes = InstanceCounters::counterValue( |
| 174 InstanceCounters::WorkerGlobalScopeCounter); | 174 InstanceCounters::WorkerGlobalScopeCounter); |
| 175 | 175 |
| 176 m_client->onLeakDetectionComplete(result); | 176 m_client->onLeakDetectionComplete(result); |
| 177 | 177 |
| 178 #ifndef NDEBUG | 178 #ifndef NDEBUG |
| 179 showLiveDocumentInstances(); | 179 showLiveDocumentInstances(); |
| 180 #endif | 180 #endif |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace | 183 } // namespace |
| 184 | 184 |
| 185 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client) { | 185 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client) { |
| 186 return new WebLeakDetectorImpl(client); | 186 return new WebLeakDetectorImpl(client); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace blink | 189 } // namespace blink |
| OLD | NEW |