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

Unified Diff: src/v8.gyp

Issue 1922303002: Create libsampler as V8 sampler library. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: src/v8.gyp
diff --git a/src/v8.gyp b/src/v8.gyp
index 5ae43bb92f12cbc0fd00cf4d99dafed3f8539530..607176755c0b97e68fd49198ae6ca59d2f1974eb 100644
--- a/src/v8.gyp
+++ b/src/v8.gyp
@@ -381,6 +381,7 @@
'type': 'static_library',
'dependencies': [
'v8_libbase',
+ 'v8_libsampler',
],
'variables': {
'optimize': 'max',
@@ -1001,8 +1002,6 @@
'profiler/profile-generator-inl.h',
'profiler/profile-generator.cc',
'profiler/profile-generator.h',
- 'profiler/sampler.cc',
- 'profiler/sampler.h',
'profiler/sampling-heap-profiler.cc',
'profiler/sampling-heap-profiler.h',
'profiler/strings-storage.cc',
@@ -1938,6 +1937,38 @@
},
},
{
+ 'target_name': 'v8_libsampler',
+ 'type': 'static_library',
+ 'variables': {
+ 'optimize': 'max',
+ },
+ 'dependencies': [
+ 'v8_libbase',
+ ],
+ 'include_dirs+': [
+ '..',
+ '../include',
+ ],
+ 'sources': [
+ 'libsampler/hashmap.h',
+ 'libsampler/utils.h',
+ 'libsampler/v8-sampler.cc',
+ 'libsampler/v8-sampler.h'
+ ],
+ 'conditions': [
+ ['want_separate_host_toolset==1', {
+ 'toolsets': ['host', 'target'],
+ }, {
+ 'toolsets': ['target'],
+ }],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include',
+ ],
+ },
+ },
+ {
'target_name': 'natives_blob',
'type': 'none',
'conditions': [
« src/libsampler/v8-sampler.cc ('K') | « src/v8.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698