Changeset 190302 in webkit
- Timestamp:
- Sep 28, 2015 7:38:00 PM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r190301 r190302 1 2015-09-28 Joseph Pecoraro <pecoraro@apple.com> 2 3 Remove unused parseMemoryAmount 4 https://bugs.webkit.org/show_bug.cgi?id=149611 5 6 Reviewed by Mark Lam. 7 8 * heap/HeapStatistics.cpp: 9 (JSC::HeapStatistics::parseMemoryAmount): Deleted. 10 * heap/HeapStatistics.h: 11 1 12 2015-09-28 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/JavaScriptCore/heap/HeapStatistics.cpp
r183124 r190302 142 142 #endif // OS(UNIX) 143 143 144 size_t HeapStatistics::parseMemoryAmount(char* s)145 {146 size_t multiplier = 1;147 char* afterS;148 size_t value = strtol(s, &afterS, 10);149 char next = afterS[0];150 switch (next) {151 case 'K':152 multiplier = KB;153 break;154 case 'M':155 multiplier = MB;156 break;157 case 'G':158 multiplier = GB;159 break;160 default:161 break;162 }163 return value * multiplier;164 }165 166 144 class StorageStatistics : public MarkedBlock::VoidFunctor { 167 145 public: -
trunk/Source/JavaScriptCore/heap/HeapStatistics.h
r147857 r190302 41 41 static void initialize(); 42 42 static void recordGCPauseTime(double start, double end); 43 static size_t parseMemoryAmount(char*);44 43 45 44 static void showObjectStatistics(Heap*);
Note: See TracChangeset
for help on using the changeset viewer.