mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
add hilog to record
Change-Id: Ia61e7cdc9f5979deb9546c528167567da34d732b Signed-off-by: leiguangyu <leiguangyu@huawei.com>
This commit is contained in:
parent
eaaa223db4
commit
fbc218cab2
10
BUILD.gn
10
BUILD.gn
@ -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") {
|
||||
|
@ -38,9 +38,6 @@ inline long gettid()
|
||||
return GetCurrentThreadId();
|
||||
}
|
||||
#endif // !is_mingw
|
||||
#if is_ohos
|
||||
#include "hiperf_hilog.h"
|
||||
#endif
|
||||
|
||||
namespace OHOS {
|
||||
namespace Developtools {
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user