Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
793d7d6b
Commit
793d7d6b
authored
Jan 07, 2015
by
Daniel Agar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake add gperftools support
-enabled with cmake -DENABLE_GPERFTOOLS=ON
parent
166aef82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
src/CMakeLists.txt
src/CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
793d7d6b
...
...
@@ -18,6 +18,7 @@ endif()
option
(
ENABLE_CCACHE
"enable caching compiler output"
ON
)
option
(
ENABLE_GIL
"threading use GIL"
ON
)
option
(
ENABLE_GOLD
"enable the gold linker"
ON
)
option
(
ENABLE_GPERFTOOLS
"enable the google performance tools"
OFF
)
option
(
ENABLE_GRWL
"threading use GRWL"
OFF
)
option
(
ENABLE_INTEL_JIT_EVENTS
"LLVM support for Intel JIT Events API"
OFF
)
option
(
ENABLE_LLVM_DEBUG
"LLVM debug symbols"
OFF
)
...
...
@@ -120,6 +121,10 @@ else()
add_definitions
(
-DTHREADING_USE_GIL=1 -DTHREADING_USE_GRWL=0
)
endif
()
if
(
ENABLE_GPERFTOOLS
)
set
(
OPTIONAL_LIBRARIES
${
OPTIONAL_LIBRARIES
}
profiler
)
endif
()
if
(
ENABLE_OPROFILE
)
set
(
OPTIONAL_LIBRARIES
${
OPTIONAL_LIBRARIES
}
opagent
)
endif
()
...
...
src/CMakeLists.txt
View file @
793d7d6b
...
...
@@ -20,6 +20,10 @@ file(GLOB GC_SRCS gc/*.cpp)
file
(
GLOB RUNTIME_BUILTIN_MODULES_SRCS runtime/builtin_modules/*.cpp
)
file
(
GLOB RUNTIME_SRCS runtime/*.cpp
)
if
(
ENABLE_GPERFTOOLS
)
set
(
OPTIONAL_SRCS
${
OPTIONAL_SRCS
}
codegen/profiling/pprof.cpp
)
endif
()
if
(
ENABLE_OPROFILE
)
set
(
OPTIONAL_SRCS codegen/profiling/oprofile.cpp
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment