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

Side by Side Diff: src/log-utils.cc

Issue 11411144: Also time other API functions calling into javascript. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/log.cc ('k') | src/optimizing-compiler-thread.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // --log-all enables all the log flags. 61 // --log-all enables all the log flags.
62 if (FLAG_log_all) { 62 if (FLAG_log_all) {
63 FLAG_log_runtime = true; 63 FLAG_log_runtime = true;
64 FLAG_log_api = true; 64 FLAG_log_api = true;
65 FLAG_log_code = true; 65 FLAG_log_code = true;
66 FLAG_log_gc = true; 66 FLAG_log_gc = true;
67 FLAG_log_suspect = true; 67 FLAG_log_suspect = true;
68 FLAG_log_handles = true; 68 FLAG_log_handles = true;
69 FLAG_log_regexp = true; 69 FLAG_log_regexp = true;
70 FLAG_log_timer_events = true;
70 } 71 }
71 72
72 // --prof implies --log-code. 73 // --prof implies --log-code.
73 if (FLAG_prof) FLAG_log_code = true; 74 if (FLAG_prof) FLAG_log_code = true;
74 75
75 // --prof_lazy controls --log-code, implies --noprof_auto. 76 // --prof_lazy controls --log-code, implies --noprof_auto.
76 if (FLAG_prof_lazy) { 77 if (FLAG_prof_lazy) {
77 FLAG_log_code = false; 78 FLAG_log_code = false;
78 FLAG_prof_auto = false; 79 FLAG_prof_auto = false;
79 } 80 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 ASSERT(pos_ <= Log::kMessageBufferSize); 303 ASSERT(pos_ <= Log::kMessageBufferSize);
303 const int written = log_->WriteToFile(log_->message_buffer_, pos_); 304 const int written = log_->WriteToFile(log_->message_buffer_, pos_);
304 if (written != pos_) { 305 if (written != pos_) {
305 log_->stop(); 306 log_->stop();
306 log_->logger_->LogFailure(); 307 log_->logger_->LogFailure();
307 } 308 }
308 } 309 }
309 310
310 311
311 } } // namespace v8::internal 312 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698