forked from manticoresoftware/manticoresearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notice, perfetto itself is not included, and tracing disabled. For now you need to download it explicitly. Look at src/perfetto/README.txt for instructions
- Loading branch information
alexey
committed
Sep 21, 2022
1 parent
4524cdc
commit 2f3cab0
Showing
20 changed files
with
487 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cmake_minimum_required ( VERSION 3.20 ) | ||
|
||
# Provide valid perfetto library despite presence of the sources | ||
if (EXISTS perfetto.cc AND NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD) | ||
# Define a static library for Perfetto. | ||
add_library ( perfetto STATIC perfetto.cc ) | ||
target_include_directories ( perfetto INTERFACE "${MANTICORE_CURRENT_SOURCE_DIR}" ) | ||
target_compile_definitions ( perfetto PUBLIC PERFETTO ) | ||
|
||
if (WIN32) | ||
target_compile_definitions ( perfetto PRIVATE NOMINMAX=1 WIN32_LEAN_AND_MEAN=1 PUBLIC _WIN32 ) | ||
target_compile_options ( perfetto PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/bigobj> ) | ||
target_link_libraries ( perfetto PRIVATE WS2_32 ) | ||
endif () | ||
else() | ||
# Define an empty (stub) perfetto. | ||
add_library ( perfetto INTERFACE ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Google Perfetto tracing SDK | ||
Apache v2 license | ||
|
||
How to retrieve: | ||
|
||
1. `git clone https://android.googlesource.com/platform/external/perfetto -b v27.1` | ||
2. Copy `perfetto.cc` and `perfetto.h` from folder `sdk` into this folder | ||
3. Reconfigure | ||
|
||
Generated traces can be opened with https://ui.perfetto.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.