提交 9bfb4755 编写于 作者: F fanxiaoyu

Description:add log for ipc object destory

Feature or Bugfix:Feature
Binary Source: No
Signed-off-by: Nfanxiaoyu <fanxiaoyu3@huawei.com>
上级 01ef9838
......@@ -37,12 +37,13 @@ using namespace IPC_SINGLE;
static constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_IPC, "IPCObjectProxy" };
IPCObjectProxy::IPCObjectProxy(int handle, std::u16string descriptor, int proto)
: IRemoteObject(std::move(descriptor)), handle_(handle), proto_(proto), isFinishInit_(false), isRemoteDead_(false)
{}
{
ZLOGW(LABEL, "create, desc: %{public}s", Str16ToStr8(descriptor).c_str());
}
IPCObjectProxy::~IPCObjectProxy()
{
ZLOGW(LABEL, "handle: %{public}u, desc: %{public}s destroyed",
handle_, Str16ToStr8(descriptor_).c_str());
ZLOGW(LABEL, "destroy, desc: %{public}s", Str16ToStr8(descriptor_).c_str());
}
int32_t IPCObjectProxy::GetObjectRefCount()
......
......@@ -48,11 +48,14 @@ static const std::string SAMGR_PROCESS_NAME = "samgr";
static constexpr pid_t HIDUMPER_SERVICE_UID = 1212;
static constexpr pid_t SHELL_UID = 2000;
IPCObjectStub::IPCObjectStub(std::u16string descriptor) : IRemoteObject(descriptor) {}
IPCObjectStub::IPCObjectStub(std::u16string descriptor) : IRemoteObject(descriptor)
{
ZLOGW(LABEL, "create, desc: %{public}s", Str16ToStr8(descriptor).c_str());
}
IPCObjectStub::~IPCObjectStub()
{
ZLOGW(LABEL, "IPCObjectStub destroyed, desc: %{public}s", Str16ToStr8(descriptor_).c_str());
ZLOGW(LABEL, "destroy, desc: %{public}s", Str16ToStr8(descriptor_).c_str());
}
bool IPCObjectStub::IsDeviceIdIllegal(const std::string &deviceID)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册