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

Side by Side Diff: src/log.cc

Issue 484643002: Version 3.28.71.3 (merged r23081) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.28
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/libplatform/worker-thread.cc ('k') | src/macro-assembler.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 <stdarg.h> 5 #include <stdarg.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 686
687 private: 687 private:
688 Profiler* profiler_; 688 Profiler* profiler_;
689 }; 689 };
690 690
691 691
692 // 692 //
693 // Profiler implementation. 693 // Profiler implementation.
694 // 694 //
695 Profiler::Profiler(Isolate* isolate) 695 Profiler::Profiler(Isolate* isolate)
696 : base::Thread("v8:Profiler"), 696 : base::Thread(Options("v8:Profiler")),
697 isolate_(isolate), 697 isolate_(isolate),
698 head_(0), 698 head_(0),
699 tail_(0), 699 tail_(0),
700 overflow_(false), 700 overflow_(false),
701 buffer_semaphore_(0), 701 buffer_semaphore_(0),
702 engaged_(false), 702 engaged_(false),
703 running_(false), 703 running_(false),
704 paused_(false) { 704 paused_(false) {}
705 }
706 705
707 706
708 void Profiler::Engage() { 707 void Profiler::Engage() {
709 if (engaged_) return; 708 if (engaged_) return;
710 engaged_ = true; 709 engaged_ = true;
711 710
712 std::vector<base::OS::SharedLibraryAddress> addresses = 711 std::vector<base::OS::SharedLibraryAddress> addresses =
713 base::OS::GetSharedLibraryAddresses(); 712 base::OS::GetSharedLibraryAddresses();
714 for (size_t i = 0; i < addresses.size(); ++i) { 713 for (size_t i = 0; i < addresses.size(); ++i) {
715 LOG(isolate_, SharedLibraryEvent( 714 LOG(isolate_, SharedLibraryEvent(
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 if (jit_logger_) { 1935 if (jit_logger_) {
1937 removeCodeEventListener(jit_logger_); 1936 removeCodeEventListener(jit_logger_);
1938 delete jit_logger_; 1937 delete jit_logger_;
1939 jit_logger_ = NULL; 1938 jit_logger_ = NULL;
1940 } 1939 }
1941 1940
1942 return log_->Close(); 1941 return log_->Close();
1943 } 1942 }
1944 1943
1945 } } // namespace v8::internal 1944 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/libplatform/worker-thread.cc ('k') | src/macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698