Files
multimedia_drm_framework/services/utils/drm_trace.cpp
T
caochuan ea7a38010b drm trace
Signed-off-by: caochuan <caochuan@huawei.com>
2024-04-24 18:35:50 +08:00

32 lines
904 B
C++

/*
* Copyright (C) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <drm_trace.h>
#include "hitrace_meter.h"
namespace OHOS {
namespace DrmStandard {
DrmTrace::DrmTrace(const std::string& funcName)
{
StartTrace(HITRACE_TAG_DRM, funcName);
}
DrmTrace::~DrmTrace()
{
FinishTrace(HITRACE_TAG_DRM);
}
} // namespace DrmStandard
} // namespace OHOS