| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 // Tests of sampler functionalities. | 4 // Tests of sampler functionalities. |
| 5 | 5 |
| 6 #include "src/libsampler/v8-sampler.h" | 6 #include "src/libsampler/sampler.h" |
| 7 | 7 |
| 8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
| 9 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
| 10 | 10 |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace sampler { | 13 namespace sampler { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 CompileRun(sampler_test_source); | 132 CompileRun(sampler_test_source); |
| 133 v8::Local<v8::Function> function = GetFunction(env.local(), "start"); | 133 v8::Local<v8::Function> function = GetFunction(env.local(), "start"); |
| 134 | 134 |
| 135 int32_t repeat_count = 100; | 135 int32_t repeat_count = 100; |
| 136 v8::Local<v8::Value> args[] = {v8::Integer::New(isolate, repeat_count)}; | 136 v8::Local<v8::Value> args[] = {v8::Integer::New(isolate, repeat_count)}; |
| 137 RunSampler(env.local(), function, args, arraysize(args), 100, 100); | 137 RunSampler(env.local(), function, args, arraysize(args), 100, 100); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace sampler | 140 } // namespace sampler |
| 141 } // namespace v8 | 141 } // namespace v8 |
| OLD | NEW |