Convert LOG() -> ROCP_X logging macros. (#695)
* Convert LOG() -> ROCP_X logging macros. This patch converts the LOG() macro to the ROCP_X logging macros. There are the following levels of logs. Logs whos expressions are not evaluated unless the log level is enabled: ROCP_TRACE - VLOG(2) (enabeled by env variable GLOG_v=2) ROCP_INFO - VLOG(1) (enabeled by env variable GLOG_v=1) Logs whos expressions are always evaluated: ROCP_WARNING - LOG(WARNING) ROCP_ERROR - LOG(ERROR) ROCP_FATAL - LOG(FATAL) ROCP_DFATAL - DLOG(FATAL) (only fatal in debug mode) * source formatting (clang-format v11) (#696) Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com> * Minor fix * Fixes for VLOG before main * fix vmodule * source formatting (clang-format v11) (#718) Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com> * memory leak fix * Vlog change --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
Cette révision appartient à :
@@ -46,9 +46,9 @@ lifetime::lifetime()
|
||||
|
||||
if(common::get_env("ROCPROFILER_LIBRARY_CTOR", false))
|
||||
{
|
||||
LOG(INFO) << "Initializing rocprofiler-sdk library...";
|
||||
ROCP_INFO << "Initializing rocprofiler-sdk library...";
|
||||
registration::initialize();
|
||||
LOG(INFO) << "rocprofiler-sdk library initialized";
|
||||
ROCP_INFO << "rocprofiler-sdk library initialized";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ lifetime::~lifetime()
|
||||
{
|
||||
if(common::get_env("ROCPROFILER_LIBRARY_DTOR", false))
|
||||
{
|
||||
LOG(INFO) << "Finalizing rocprofiler-sdk library...";
|
||||
ROCP_INFO << "Finalizing rocprofiler-sdk library...";
|
||||
registration::finalize();
|
||||
LOG(INFO) << "rocprofiler-sdk library finalized";
|
||||
ROCP_INFO << "rocprofiler-sdk library finalized";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur