Changeset 67265 in webkit
- Timestamp:
- Sep 10, 2010, 6:40:45 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r67146 r67265 1 2010-09-10 Stephanie Lewis <slewis@apple.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know 6 about the JIT and other implementation details of JavaScriptCore. Necessary 7 to fix PPC build. 8 9 https://bugs.webkit.org/show_bug.cgi?id=45528 10 11 * JavaScriptCore.exp: 12 * JavaScriptCore.xcodeproj/project.pbxproj: 13 * runtime/MemoryStatistics.cpp: Added. 14 (JSC::memoryStatistics): 15 * runtime/MemoryStatistics.h: Added. 16 1 17 2010-09-09 Michael Saboff <msaboff@apple.com> 2 18 -
trunk/JavaScriptCore/JavaScriptCore.exp
r67146 r67265 133 133 __ZN3JSC12JSGlobalData6createENS_15ThreadStackTypeE 134 134 __ZN3JSC12JSGlobalDataD1Ev 135 __ZN3JSC12RegisterFile18committedByteCountEv136 135 __ZN3JSC12SamplingTool5setupEv 137 136 __ZN3JSC12SmallStrings17createEmptyStringEPNS_12JSGlobalDataE … … 152 151 __ZN3JSC13SamplingFlags7s_flagsE 153 152 __ZN3JSC13StatementNode6setLocEii 153 __ZN3JSC14heapStatisticsEPNS_12JSGlobalDataE 154 154 __ZN3JSC14JSGlobalObject10globalExecEv 155 155 __ZN3JSC14JSGlobalObject12defineGetterEPNS_9ExecStateERKNS_10IdentifierEPNS_8JSObjectEj … … 194 194 __ZN3JSC18PropertyDescriptor9setGetterENS_7JSValueE 195 195 __ZN3JSC18PropertyDescriptor9setSetterENS_7JSValueE 196 __ZN3JSC19ExecutableAllocator18committedByteCountEv197 196 __ZN3JSC19initializeThreadingEv 198 197 __ZN3JSC20MarkedArgumentBuffer10slowAppendENS_7JSValueE 199 198 __ZN3JSC20createReferenceErrorEPNS_9ExecStateERKNS_7UStringE 199 __ZN3JSC22globalMemoryStatisticsEv 200 200 __ZN3JSC23AbstractSamplingCounter4dumpEv 201 201 __ZN3JSC23objectProtoFuncToStringEPNS_9ExecStateE -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r66968 r67265 259 259 86EAC49C0F93E8D1008EC948 /* RegexPattern.h in Headers */ = {isa = PBXBuildFile; fileRef = 86EAC4940F93E8D1008EC948 /* RegexPattern.h */; }; 260 260 86F38859121130CA007A7CE3 /* AtomicStringHash.h in Headers */ = {isa = PBXBuildFile; fileRef = 86F38858121130CA007A7CE3 /* AtomicStringHash.h */; settings = {ATTRIBUTES = (Private, ); }; }; 261 90213E3D123A40C200D422F3 /* MemoryStatistics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 90213E3B123A40C200D422F3 /* MemoryStatistics.cpp */; }; 262 90213E3E123A40C200D422F3 /* MemoryStatistics.h in Headers */ = {isa = PBXBuildFile; fileRef = 90213E3C123A40C200D422F3 /* MemoryStatistics.h */; settings = {ATTRIBUTES = (Private, ); }; }; 261 263 905B02AE0E28640F006DF882 /* RefCountedLeakCounter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 905B02AD0E28640F006DF882 /* RefCountedLeakCounter.cpp */; }; 262 264 90D3469C0E285280009492EE /* RefCountedLeakCounter.h in Headers */ = {isa = PBXBuildFile; fileRef = 90D3469B0E285280009492EE /* RefCountedLeakCounter.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 860 862 86EAC4940F93E8D1008EC948 /* RegexPattern.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegexPattern.h; path = yarr/RegexPattern.h; sourceTree = "<group>"; }; 861 863 86F38858121130CA007A7CE3 /* AtomicStringHash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AtomicStringHash.h; path = text/AtomicStringHash.h; sourceTree = "<group>"; }; 864 90213E3B123A40C200D422F3 /* MemoryStatistics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryStatistics.cpp; sourceTree = "<group>"; }; 865 90213E3C123A40C200D422F3 /* MemoryStatistics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MemoryStatistics.h; sourceTree = "<group>"; }; 862 866 905B02AD0E28640F006DF882 /* RefCountedLeakCounter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RefCountedLeakCounter.cpp; sourceTree = "<group>"; }; 863 867 90D3469B0E285280009492EE /* RefCountedLeakCounter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RefCountedLeakCounter.h; sourceTree = "<group>"; }; … … 1736 1740 F692A86A0255597D01FF60F7 /* MathObject.cpp */, 1737 1741 F692A86B0255597D01FF60F7 /* MathObject.h */, 1742 90213E3B123A40C200D422F3 /* MemoryStatistics.cpp */, 1743 90213E3C123A40C200D422F3 /* MemoryStatistics.h */, 1738 1744 BC02E9080E1839DB000F9297 /* NativeErrorConstructor.cpp */, 1739 1745 BC02E9090E1839DB000F9297 /* NativeErrorConstructor.h */, … … 2308 2314 9714AF5F122F32070092D9F5 /* ParsedURL.h in Headers */, 2309 2315 9714AF60122F32070092D9F5 /* URLString.h in Headers */, 2316 90213E3E123A40C200D422F3 /* MemoryStatistics.h in Headers */, 2310 2317 ); 2311 2318 runOnlyForDeploymentPostprocessing = 0; … … 2761 2768 9714AF46122F28850092D9F5 /* URLSegments.cpp in Sources */, 2762 2769 9714AF5E122F32070092D9F5 /* ParsedURL.cpp in Sources */, 2770 90213E3D123A40C200D422F3 /* MemoryStatistics.cpp in Sources */, 2763 2771 ); 2764 2772 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebKit/mac/ChangeLog
r67264 r67265 1 2010-09-10 Stephanie Lewis <slewis@apple.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know about the JIT and 6 other implementation details of JavaScriptCore. Necessary to fix PPC build. 7 8 https://bugs.webkit.org/show_bug.cgi?id=45528 9 10 * Misc/WebCoreStatistics.mm: 11 (+[WebCoreStatistics memoryStatistics]): 12 1 13 2010-09-10 Darin Adler <darin@apple.com> 2 14 -
trunk/WebKit/mac/Misc/WebCoreStatistics.mm
r67130 r67265 30 30 31 31 #import "DOMElementInternal.h" 32 #import <JavaScriptCore/RegisterFile.h>33 #import <JavaScriptCore/ExecutableAllocator.h>34 32 #import "WebCache.h" 35 33 #import "WebFrameInternal.h" 36 #import <runtime/JSLock.h> 34 #import <JavaScriptCore/JSLock.h> 35 #import <JavaScriptCore/MemoryStatistics.h> 37 36 #import <WebCore/Console.h> 38 37 #import <WebCore/FontCache.h> … … 197 196 { 198 197 WTF::FastMallocStatistics fastMallocStatistics = WTF::fastMallocStatistics(); 199 JSLock lock(SilenceAssertionsOnly); 200 Heap::Statistics jsHeapStatistics = JSDOMWindow::commonJSGlobalData()->heap.statistics(); 201 size_t jscStackBytes = RegisterFile::committedByteCount(); 202 size_t jscJITBytes = ExecutableAllocator::committedByteCount(); 198 199 JSLock lock(SilenceAssertionsOnly); 200 Heap::Statistics heapMemoryStats = heapStatistics(JSDOMWindow::commonJSGlobalData()); 201 GlobalMemoryStatistics globalMemoryStats = globalMemoryStatistics(); 202 203 203 return [NSDictionary dictionaryWithObjectsAndKeys: 204 204 [NSNumber numberWithInt:fastMallocStatistics.reservedVMBytes], @"FastMallocReservedVMBytes", 205 205 [NSNumber numberWithInt:fastMallocStatistics.committedVMBytes], @"FastMallocCommittedVMBytes", 206 206 [NSNumber numberWithInt:fastMallocStatistics.freeListBytes], @"FastMallocFreeListBytes", 207 [NSNumber numberWithInt: jsHeapStatistics.size], @"JavaScriptHeapSize",208 [NSNumber numberWithInt: jsHeapStatistics.free], @"JavaScriptFreeSize",209 [NSNumber numberWithUnsignedInt:(unsigned int) jscStackBytes], @"JavaScriptStackSize",210 [NSNumber numberWithUnsignedInt:(unsigned int) jscJITBytes], @"JavaScriptJITSize",207 [NSNumber numberWithInt:heapMemoryStats.size], @"JavaScriptHeapSize", 208 [NSNumber numberWithInt:heapMemoryStats.free], @"JavaScriptFreeSize", 209 [NSNumber numberWithUnsignedInt:(unsigned int)globalMemoryStats.stackBytes], @"JavaScriptStackSize", 210 [NSNumber numberWithUnsignedInt:(unsigned int)globalMemoryStats.JITBytes], @"JavaScriptJITSize", 211 211 nil]; 212 212 }
Note:
See TracChangeset
for help on using the changeset viewer.