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

Side by Side Diff: src/sampler-thread.h

Issue 499483002: [WIP] A sampler thread in d8 for consuming the new API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months 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
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_SAMPLER_THREAD_H_
6 #define V8_SAMPLER_THREAD_H_
7
8 #include "include/v8-sampler.h"
9 #include "src/v8.h"
10
11 #include "src/base/platform/platform.h"
12
13 namespace v8 {
14
15 class CodeEventPrinter: public CodeEventHandler{
16 public:
17 void Create(const void* from,
18 const int size,
19 const std::string& name);
20 void Delete(const void* from);
21 void Move(const void* from, const void* to);
22 void SharedLibrary(const std::string& library_path,
23 const void* start,
24 const void* end);
25 };
26
27 class SamplerThread : public base::Thread {
28 public:
29 explicit SamplerThread(Isolate* isolate);
30 virtual ~SamplerThread() {}
31
32 void Stop();
33
34 // Thread control.
35 virtual void Run();
36
37 private:
38 Isolate* isolate_;
39 bool done_sampling_;
40 };
41
42 } // namespace v8
43
44 #endif // V8_SAMPLER_THREAD_H_
OLDNEW
« src/log.cc ('K') | « src/sampler.cc ('k') | src/sampler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698