add hilog to record

Change-Id: Ia61e7cdc9f5979deb9546c528167567da34d732b
Signed-off-by: leiguangyu <leiguangyu@huawei.com>
This commit is contained in:
leiguangyu 2024-03-30 15:22:29 +08:00
parent eaaa223db4
commit fbc218cab2
5 changed files with 11 additions and 11 deletions

View File

@ -296,10 +296,7 @@ ohos_source_set("support_protobuf") {
]
if (is_ohos) {
external_deps = [
"faultloggerd:libunwinder_static",
"hilog:libhilog",
]
external_deps = [ "faultloggerd:libunwinder_static" ]
} else {
external_deps = [ "faultloggerd:unwinder_host" ]
}
@ -466,10 +463,7 @@ ohos_source_set("hiperf_platform_host") {
subsystem_name = "developtools"
sources = [ "./src/hiperf_libreport.cpp" ]
public_deps = [ ":hiperf_platform_common" ]
external_deps = [
"faultloggerd:unwinder_host",
"hilog:libhilog",
]
external_deps = [ "faultloggerd:unwinder_host" ]
}
ohos_shared_library("hiperf_host_lib") {

View File

@ -38,9 +38,6 @@ inline long gettid()
return GetCurrentThreadId();
}
#endif // !is_mingw
#if is_ohos
#include "hiperf_hilog.h"
#endif
namespace OHOS {
namespace Developtools {

View File

@ -18,6 +18,9 @@
#include <ratio>
#include "option.h"
#if is_ohos
#include "hiperf_hilog.h"
#endif
using namespace std::literals::chrono_literals;
using namespace std::chrono;

View File

@ -18,6 +18,9 @@
#include "command.h"
#include "debug_logger.h"
#if is_ohos
#include "hiperf_hilog.h"
#endif
#include "option_debug.h"
#include "subcommand.h"
#include "subcommand_help.h"

View File

@ -32,6 +32,9 @@
#include "command.h"
#include "debug_logger.h"
#include "hiperf_client.h"
#if is_ohos
#include "hiperf_hilog.h"
#endif
#include "option.h"
#include "perf_event_record.h"
#include "perf_file_reader.h"