 Chromium Code Reviews
 Chromium Code Reviews Issue 22852024:
  Track JS allocations as they arrive with no affection on performance when tracking is switched off  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 22852024:
  Track JS allocations as they arrive with no affection on performance when tracking is switched off  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: test/cctest/cctest.cc | 
| diff --git a/test/cctest/cctest.cc b/test/cctest/cctest.cc | 
| index 962dc02e2f6d29358caf2e8bd47a9b7d54e01a6c..a04e8779a351dbf9c9673adcef04cc1f3cde46ed 100644 | 
| --- a/test/cctest/cctest.cc | 
| +++ b/test/cctest/cctest.cc | 
| @@ -190,3 +190,9 @@ int main(int argc, char* argv[]) { | 
| RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; | 
| int RegisterThreadedTest::count_ = 0; | 
| + | 
| +void RunAndTrackAllocations(void (*test)()) { | 
| + LocalContext env; | 
| 
Alexandra Mikhaylova
2013/09/19 16:09:04
All we need to do here is to quickly initialize th
 | 
| + HeapObjectsTracker tracker; | 
| + (*test)(); | 
| +} |