添加trace及补充获取插件context的tdd

Signed-off-by: s30030188 <songjindian1@h-partners.com>
This commit is contained in:
s30030188
2025-07-05 19:07:38 +08:00
parent 5e233c6eea
commit c4ee8a6de4
2 changed files with 52 additions and 1 deletions
@@ -48,7 +48,8 @@ bool JsModuleReader::operator()(const std::string& inputPath, uint8_t **buff,
size_t *buffSize, std::string& errorMsg) const
{
TAG_LOGD(AAFwkTag::JSRUNTIME, "called start: %{private}s", inputPath.c_str());
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
std::string traceTag = __PRETTY_FUNCTION__ + inputPath;
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, traceTag);
if (inputPath.empty() || buff == nullptr || buffSize == nullptr) {
TAG_LOGE(AAFwkTag::JSRUNTIME, "Invalid param");
return false;