OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5216 void V8::SetCounterFunction(CounterLookupCallback callback) { | 5216 void V8::SetCounterFunction(CounterLookupCallback callback) { |
5217 i::Isolate* isolate = EnterIsolateIfNeeded(); | 5217 i::Isolate* isolate = EnterIsolateIfNeeded(); |
5218 if (IsDeadCheck(isolate, "v8::V8::SetCounterFunction()")) return; | 5218 if (IsDeadCheck(isolate, "v8::V8::SetCounterFunction()")) return; |
5219 isolate->stats_table()->SetCounterFunction(callback); | 5219 isolate->stats_table()->SetCounterFunction(callback); |
5220 } | 5220 } |
5221 | 5221 |
5222 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { | 5222 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) { |
5223 i::Isolate* isolate = EnterIsolateIfNeeded(); | 5223 i::Isolate* isolate = EnterIsolateIfNeeded(); |
5224 if (IsDeadCheck(isolate, "v8::V8::SetCreateHistogramFunction()")) return; | 5224 if (IsDeadCheck(isolate, "v8::V8::SetCreateHistogramFunction()")) return; |
5225 isolate->stats_table()->SetCreateHistogramFunction(callback); | 5225 isolate->stats_table()->SetCreateHistogramFunction(callback); |
| 5226 isolate->InitializeLoggingAndCounters(); |
| 5227 isolate->counters()->ResetHistograms(); |
5226 } | 5228 } |
5227 | 5229 |
5228 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { | 5230 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { |
5229 i::Isolate* isolate = EnterIsolateIfNeeded(); | 5231 i::Isolate* isolate = EnterIsolateIfNeeded(); |
5230 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; | 5232 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; |
5231 isolate->stats_table()-> | 5233 isolate->stats_table()-> |
5232 SetAddHistogramSampleFunction(callback); | 5234 SetAddHistogramSampleFunction(callback); |
5233 } | 5235 } |
5234 | 5236 |
5235 void V8::EnableSlidingStateWindow() { | 5237 void V8::EnableSlidingStateWindow() { |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6518 | 6520 |
6519 v->VisitPointers(blocks_.first(), first_block_limit_); | 6521 v->VisitPointers(blocks_.first(), first_block_limit_); |
6520 | 6522 |
6521 for (int i = 1; i < blocks_.length(); i++) { | 6523 for (int i = 1; i < blocks_.length(); i++) { |
6522 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6524 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6523 } | 6525 } |
6524 } | 6526 } |
6525 | 6527 |
6526 | 6528 |
6527 } } // namespace v8::internal | 6529 } } // namespace v8::internal |
OLD | NEW |