OLD | NEW |
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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 stream.Put(*p); | 1471 stream.Put(*p); |
1472 } | 1472 } |
1473 } | 1473 } |
1474 SmartPointer<const char> expanded = stream.ToCString(); | 1474 SmartPointer<const char> expanded = stream.ToCString(); |
1475 Log::OpenFile(*expanded); | 1475 Log::OpenFile(*expanded); |
1476 } else { | 1476 } else { |
1477 Log::OpenFile(FLAG_logfile); | 1477 Log::OpenFile(FLAG_logfile); |
1478 } | 1478 } |
1479 } | 1479 } |
1480 | 1480 |
1481 ASSERT(VMState::current_state_ == NULL); // NULL implies outermost external. | 1481 ASSERT(VMState::is_outermost_external()); |
1482 | 1482 |
1483 ticker_ = new Ticker(kSamplingIntervalMs); | 1483 ticker_ = new Ticker(kSamplingIntervalMs); |
1484 | 1484 |
1485 if (FLAG_sliding_state_window && sliding_state_window_ == NULL) { | 1485 if (FLAG_sliding_state_window && sliding_state_window_ == NULL) { |
1486 sliding_state_window_ = new SlidingStateWindow(); | 1486 sliding_state_window_ = new SlidingStateWindow(); |
1487 } | 1487 } |
1488 | 1488 |
1489 log_events_ = FLAG_compress_log ? | 1489 log_events_ = FLAG_compress_log ? |
1490 kCompressedLogEventsNames : kLongLogEventsNames; | 1490 kCompressedLogEventsNames : kLongLogEventsNames; |
1491 if (FLAG_compress_log) { | 1491 if (FLAG_compress_log) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 } | 1560 } |
1561 // Otherwise, if the sliding state window computation has not been | 1561 // Otherwise, if the sliding state window computation has not been |
1562 // started we do it now. | 1562 // started we do it now. |
1563 if (sliding_state_window_ == NULL) { | 1563 if (sliding_state_window_ == NULL) { |
1564 sliding_state_window_ = new SlidingStateWindow(); | 1564 sliding_state_window_ = new SlidingStateWindow(); |
1565 } | 1565 } |
1566 #endif | 1566 #endif |
1567 } | 1567 } |
1568 | 1568 |
1569 } } // namespace v8::internal | 1569 } } // namespace v8::internal |
OLD | NEW |