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

Unified Diff: test/cctest/cctest.cc

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
Patch Set: Deoptimize code and generate optimized code when switching allocations tracking Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)();
+}
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698