Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: src/heap.h

Issue 200132: Add initial version of retainers heap profile. (Closed)
Patch Set: Comments addressed Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/SConscript ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 }; 1436 };
1437 1437
1438 class DisableAssertNoAllocation { 1438 class DisableAssertNoAllocation {
1439 public: 1439 public:
1440 DisableAssertNoAllocation() { } 1440 DisableAssertNoAllocation() { }
1441 ~DisableAssertNoAllocation() { } 1441 ~DisableAssertNoAllocation() { }
1442 }; 1442 };
1443 1443
1444 #endif 1444 #endif
1445 1445
1446 #ifdef ENABLE_LOGGING_AND_PROFILING
1447 // The HeapProfiler writes data to the log files, which can be postprocessed
1448 // to generate .hp files for use by the GHC/Valgrind tool hp2ps.
1449 class HeapProfiler {
1450 public:
1451 // Write a single heap sample to the log file.
1452 static void WriteSample();
1453
1454 private:
1455 // Update the array info with stats from obj.
1456 static void CollectStats(HeapObject* obj, HistogramInfo* info);
1457 };
1458 #endif
1459
1460 // GCTracer collects and prints ONE line after each garbage collector 1446 // GCTracer collects and prints ONE line after each garbage collector
1461 // invocation IFF --trace_gc is used. 1447 // invocation IFF --trace_gc is used.
1462 1448
1463 class GCTracer BASE_EMBEDDED { 1449 class GCTracer BASE_EMBEDDED {
1464 public: 1450 public:
1465 GCTracer(); 1451 GCTracer();
1466 1452
1467 ~GCTracer(); 1453 ~GCTracer();
1468 1454
1469 // Sets the collector. 1455 // Sets the collector.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 } 1589 }
1604 static TranscendentalCache* caches_[kNumberOfCaches]; 1590 static TranscendentalCache* caches_[kNumberOfCaches];
1605 Element elements_[kCacheSize]; 1591 Element elements_[kCacheSize];
1606 Type type_; 1592 Type type_;
1607 }; 1593 };
1608 1594
1609 1595
1610 } } // namespace v8::internal 1596 } } // namespace v8::internal
1611 1597
1612 #endif // V8_HEAP_H_ 1598 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698