Skip to content

Commit

Permalink
HPCC-32148 Add an option to default metrics for service calls on in esp
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Jun 26, 2024
1 parent 5ab5e28 commit 17aaaf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake_modules/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ option(USE_ADDRESS_SANITIZER "Use address sanitizer to spot leaks" OFF)
option(INSTALL_VCPKG_CATALOG "Install vcpkg-catalog.txt" ON)
option(PORTALURL "Set url to hpccsystems portal download page")
option(PROFILING "Set to true if planning to profile so stacks are informative" OFF)
option(COLLECT_SERVICE_METRICS "Set to true to gather metrics for HIDL services by default" OFF)

set(CUSTOM_LABEL "" CACHE STRING "Appends a custom label to the final package name")

Expand Down
2 changes: 1 addition & 1 deletion initfiles/componentfiles/configxml/dali.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@
</xsl:element>
</xsl:if>
</xsl:element>
<xsl:call-template name="addMetricsConfig"/>
</DALI>
<xsl:call-template name="addMetricsConfig"/>
</xsl:template>

<xsl:template name="makeAbsolutePath">
Expand Down
2 changes: 1 addition & 1 deletion tools/hidl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

project( hidl )

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR COLLECT_SERVICE_METRICS)
add_definitions(-DENABLE_DEFAULT_EXECUTION_PROFILING)
endif()

Expand Down

0 comments on commit 17aaaf5

Please sign in to comment.