| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 14 matching lines...) Expand all Loading... |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_A64_INSTRUMENT_A64_H_ | 28 #ifndef V8_A64_INSTRUMENT_A64_H_ |
| 29 #define V8_A64_INSTRUMENT_A64_H_ | 29 #define V8_A64_INSTRUMENT_A64_H_ |
| 30 | 30 |
| 31 #include "globals.h" | 31 #include "globals.h" |
| 32 #include "utils.h" | 32 #include "utils.h" |
| 33 #include "a64/decoder-a64.h" | 33 #include "a64/decoder-a64.h" |
| 34 #include "a64/constants-a64.h" | 34 #include "a64/constants-a64.h" |
| 35 #include "a64/instrument-a64.h" | |
| 36 | 35 |
| 37 namespace v8 { | 36 namespace v8 { |
| 38 namespace internal { | 37 namespace internal { |
| 39 | 38 |
| 40 const int kCounterNameMaxLength = 256; | 39 const int kCounterNameMaxLength = 256; |
| 41 const uint64_t kDefaultInstrumentationSamplingPeriod = 1 << 22; | 40 const uint64_t kDefaultInstrumentationSamplingPeriod = 1 << 22; |
| 42 | 41 |
| 43 | 42 |
| 44 enum InstrumentState { | 43 enum InstrumentState { |
| 45 InstrumentStateDisable = 0, | 44 InstrumentStateDisable = 0, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 98 |
| 100 std::list<Counter*> counters_; | 99 std::list<Counter*> counters_; |
| 101 | 100 |
| 102 FILE *output_stream_; | 101 FILE *output_stream_; |
| 103 uint64_t sample_period_; | 102 uint64_t sample_period_; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } } // namespace v8::internal | 105 } } // namespace v8::internal |
| 107 | 106 |
| 108 #endif // V8_A64_INSTRUMENT_A64_H_ | 107 #endif // V8_A64_INSTRUMENT_A64_H_ |
| OLD | NEW |