Rename Omnitrace to ROCm Systems Profiler (#4)
The Omnitrace program is being renamed. Full name: "ROCm Systems Profiler" Package name: "rocprofiler-systems" Binary / Library names: "rocprof-sys-*" --------- Co-authored-by: Xuan Chen <xuchen@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Esse commit está contido em:
@@ -1,12 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
||||
|
||||
project(omnitrace-code-coverage-example LANGUAGES CXX)
|
||||
project(rocprofiler-systems-code-coverage-example LANGUAGES CXX)
|
||||
|
||||
if(OMNITRACE_DISABLE_EXAMPLES)
|
||||
if(ROCPROFSYS_DISABLE_EXAMPLES)
|
||||
get_filename_component(_DIR ${CMAKE_CURRENT_LIST_DIR} NAME)
|
||||
|
||||
if(${PROJECT_NAME} IN_LIST OMNITRACE_DISABLE_EXAMPLES OR ${_DIR} IN_LIST
|
||||
OMNITRACE_DISABLE_EXAMPLES)
|
||||
if(${PROJECT_NAME} IN_LIST ROCPROFSYS_DISABLE_EXAMPLES OR ${_DIR} IN_LIST
|
||||
ROCPROFSYS_DISABLE_EXAMPLES)
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
@@ -19,11 +19,11 @@ add_executable(code-coverage code-coverage.cpp)
|
||||
target_link_libraries(code-coverage PRIVATE Threads::Threads)
|
||||
target_compile_options(code-coverage PRIVATE ${_FLAGS})
|
||||
|
||||
if(OMNITRACE_INSTALL_EXAMPLES)
|
||||
if(ROCPROFSYS_INSTALL_EXAMPLES)
|
||||
install(
|
||||
TARGETS code-coverage
|
||||
DESTINATION bin
|
||||
COMPONENT omnitrace-examples)
|
||||
COMPONENT rocprofiler-systems-examples)
|
||||
endif()
|
||||
|
||||
set(PYTHON_FILES code-coverage.py)
|
||||
@@ -37,11 +37,11 @@ if(Python3_FOUND)
|
||||
configure_file(${PROJECT_SOURCE_DIR}/${_FILE} ${PROJECT_BINARY_DIR}/${_FILE}
|
||||
@ONLY)
|
||||
|
||||
if(OMNITRACE_INSTALL_EXAMPLES)
|
||||
if(ROCPROFSYS_INSTALL_EXAMPLES)
|
||||
install(
|
||||
PROGRAMS ${PROJECT_BINARY_DIR}/${_FILE}
|
||||
DESTINATION bin
|
||||
COMPONENT omnitrace-examples)
|
||||
COMPONENT rocprofiler-systems-examples)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!@PYTHON_EXECUTABLE@
|
||||
|
||||
import omnitrace
|
||||
import rocprofsys
|
||||
import argparse
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -28,15 +28,15 @@ if __name__ == "__main__":
|
||||
|
||||
data = None
|
||||
for itr in args.input:
|
||||
_summary, _details = omnitrace.coverage.load(itr)
|
||||
_summary, _details = rocprofsys.coverage.load(itr)
|
||||
if data is None:
|
||||
data = _details
|
||||
else:
|
||||
data = omnitrace.coverage.concat(data, _details)
|
||||
data = rocprofsys.coverage.concat(data, _details)
|
||||
|
||||
summary = omnitrace.coverage.get_summary(data)
|
||||
top = omnitrace.coverage.get_top(data)
|
||||
bottom = omnitrace.coverage.get_bottom(data)
|
||||
summary = rocprofsys.coverage.get_summary(data)
|
||||
top = rocprofsys.coverage.get_top(data)
|
||||
bottom = rocprofsys.coverage.get_bottom(data)
|
||||
|
||||
print("Top code coverage:")
|
||||
for itr in top:
|
||||
@@ -51,4 +51,4 @@ if __name__ == "__main__":
|
||||
)
|
||||
|
||||
print("\nSaving code coverage")
|
||||
omnitrace.coverage.save(summary, data, args.output)
|
||||
rocprofsys.coverage.save(summary, data, args.output)
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário