mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
Revert "frame trace for ace.bg"
This reverts commit a48d234df0
.
Signed-off-by: gavin <m18724298828@163.com>
This commit is contained in:
parent
a48d234df0
commit
4900a62449
@ -26,7 +26,6 @@ template("ace_base_source_set") {
|
||||
"base64:ace_base_base64_$platform",
|
||||
"i18n:ace_base_i18n_$platform",
|
||||
"resource:ace_resource",
|
||||
"//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf:frame_trace_intf",
|
||||
]
|
||||
|
||||
configs = [ "$ace_root:ace_config" ]
|
||||
@ -58,11 +57,9 @@ template("ace_base_source_set") {
|
||||
"utils/time_util.cpp",
|
||||
]
|
||||
|
||||
include_dirs = []
|
||||
|
||||
if (platform != "windows") {
|
||||
# add secure c API
|
||||
include_dirs += [ "//third_party/bounds_checking_function/include" ]
|
||||
include_dirs = [ "//third_party/bounds_checking_function/include" ]
|
||||
|
||||
sources += [
|
||||
"//third_party/bounds_checking_function/src/memset_s.c",
|
||||
@ -91,7 +88,6 @@ template("ace_base_source_set") {
|
||||
|
||||
cflags_cc = []
|
||||
cflags_cc += invoker.cflags_cc
|
||||
include_dirs += [ "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,15 +17,9 @@
|
||||
|
||||
#include <pthread.h>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
#include "base/log/log.h"
|
||||
#include "base/memory/memory_monitor.h"
|
||||
#include "frame_trace.h"
|
||||
|
||||
using namespace FRAME_TRACE;
|
||||
|
||||
static const std::string BG_THREAD_NAME = "ui";
|
||||
|
||||
namespace OHOS::Ace {
|
||||
namespace {
|
||||
@ -89,17 +83,6 @@ bool BackgroundTaskExecutor::PostTask(Task&& task, BgTaskPriority priority)
|
||||
if (!running_) {
|
||||
return false;
|
||||
}
|
||||
if (FrameAwareTraceEnable(BG_THREAD_NAME)) {
|
||||
switch (priority) {
|
||||
case BgTaskPriority::LOW:
|
||||
TraceAndExecute(std::move(task), TraceType::QUICK_TRACE);
|
||||
break;
|
||||
default:
|
||||
TraceAndExecute(std::move(task), TraceType::SLOW_TRACE);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
switch (priority) {
|
||||
case BgTaskPriority::LOW:
|
||||
lowPriorityTasks_.emplace_back(std::move(task));
|
||||
@ -122,17 +105,6 @@ bool BackgroundTaskExecutor::PostTask(const Task& task, BgTaskPriority priority)
|
||||
if (!running_) {
|
||||
return false;
|
||||
}
|
||||
if (FrameAwareTraceEnable(BG_THREAD_NAME)) {
|
||||
Task variableTask = task;
|
||||
switch (priority) {
|
||||
case BgTaskPriority::LOW:
|
||||
TraceAndExecute(std::move(variableTask), TraceType::QUICK_TRACE);
|
||||
break;
|
||||
default:
|
||||
TraceAndExecute(std::move(variableTask), TraceType::SLOW_TRACE);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
switch (priority) {
|
||||
case BgTaskPriority::LOW:
|
||||
lowPriorityTasks_.emplace_back(task);
|
||||
|
@ -345,7 +345,6 @@ template("ace_core_source_set") {
|
||||
]
|
||||
|
||||
deps += [ "$ace_root/frameworks/core/components_part_upd/foreach:ace_core_components_foreach_part_upd_$platform" ]
|
||||
deps += [ "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf:frame_trace_intf" ]
|
||||
|
||||
deps += [
|
||||
"$ace_root/frameworks/core/components_ng/base:ace_core_components_base_ng_$platform",
|
||||
|
@ -237,13 +237,10 @@ ohos_unittest("PipelineContextTest") {
|
||||
"$ace_root/frameworks/base/resource:ace_resource",
|
||||
"$ace_root/frameworks/core/components/theme:build_theme_code",
|
||||
"$cjson_root:cjson_static",
|
||||
"//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf:frame_trace_intf",
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
include_dirs = [ "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf" ]
|
||||
|
||||
if (!is_standard_system) {
|
||||
aosp_deps = [ "shared_library:libcurl" ]
|
||||
external_deps = [
|
||||
|
@ -164,13 +164,11 @@ ohos_fuzztest("ImageLoaderFuzzTest") {
|
||||
"$ace_root/frameworks/base/log",
|
||||
"$ace_root/frameworks",
|
||||
"$ace_root",
|
||||
"//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf",
|
||||
"//third_party/flutter/engine/flutter/assets",
|
||||
"//third_party/flutter/engine",
|
||||
"//third_party",
|
||||
"//commonlibrary/c_utils/base/include",
|
||||
]
|
||||
deps += [ "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf:frame_trace_intf" ]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user