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

Side by Side Diff: src/log.cc

Issue 1997363002: Adds support for collecting statistics about code and its metadata. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments from Hannes. Created 4 years, 7 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/isolate.h ('k') | src/objects.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/log.h" 5 #include "src/log.h"
6 6
7 #include <cstdarg> 7 #include <cstdarg>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 tag = Logger::STUB_TAG; 1551 tag = Logger::STUB_TAG;
1552 break; 1552 break;
1553 case AbstractCode::JS_TO_WASM_FUNCTION: 1553 case AbstractCode::JS_TO_WASM_FUNCTION:
1554 description = "A JavaScript to Wasm adapter"; 1554 description = "A JavaScript to Wasm adapter";
1555 tag = Logger::STUB_TAG; 1555 tag = Logger::STUB_TAG;
1556 break; 1556 break;
1557 case AbstractCode::WASM_TO_JS_FUNCTION: 1557 case AbstractCode::WASM_TO_JS_FUNCTION:
1558 description = "A Wasm to JavaScript adapter"; 1558 description = "A Wasm to JavaScript adapter";
1559 tag = Logger::STUB_TAG; 1559 tag = Logger::STUB_TAG;
1560 break; 1560 break;
1561 case AbstractCode::NUMBER_OF_KINDS:
1562 UNIMPLEMENTED();
1561 } 1563 }
1562 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); 1564 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description));
1563 } 1565 }
1564 1566
1565 1567
1566 void Logger::LogCodeObjects() { 1568 void Logger::LogCodeObjects() {
1567 Heap* heap = isolate_->heap(); 1569 Heap* heap = isolate_->heap();
1568 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1570 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1569 "Logger::LogCodeObjects"); 1571 "Logger::LogCodeObjects");
1570 HeapIterator iterator(heap); 1572 HeapIterator iterator(heap);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 removeCodeEventListener(jit_logger_); 1853 removeCodeEventListener(jit_logger_);
1852 delete jit_logger_; 1854 delete jit_logger_;
1853 jit_logger_ = NULL; 1855 jit_logger_ = NULL;
1854 } 1856 }
1855 1857
1856 return log_->Close(); 1858 return log_->Close();
1857 } 1859 }
1858 1860
1859 } // namespace internal 1861 } // namespace internal
1860 } // namespace v8 1862 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698