当前位置: 首页>>代码示例>>C++>>正文


C++ PerformanceTimer::lastTimeUs方法代码示例

本文整理汇总了C++中PerformanceTimer::lastTimeUs方法的典型用法代码示例。如果您正苦于以下问题:C++ PerformanceTimer::lastTimeUs方法的具体用法?C++ PerformanceTimer::lastTimeUs怎么用?C++ PerformanceTimer::lastTimeUs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PerformanceTimer的用法示例。


在下文中一共展示了PerformanceTimer::lastTimeUs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: step

/**
 * Mark an intermediate step in breakdown tracer.
 *
 * @arg func, the function name which called it.
 * @arg not, a string printed with the breakdown trace
 * @arg mFrameNum, the num of the frame got from ISP.
 */
void PnPBreakdown::step(const char *func, const char* note, const int mFrameNum)
{
    if (gPnPBreakdown.isRunning()) {
        if (!note)
            note = "";
        if (mFrameNum < 0)
            LOGD("PnPBreakdown-step %s:%s, Time: %lld us, Diff: %lld us",
                 func, note, gPnPBreakdown.timeUs(), gPnPBreakdown.lastTimeUs());
        else
            LOGD("PnPBreakdown-step %s:%s[%d], Time: %lld us, Diff: %lld us",
                 func, note, mFrameNum, gPnPBreakdown.timeUs(), gPnPBreakdown.lastTimeUs());
   }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:20,代码来源:PerformanceTraces.cpp

示例2: LOGD

IOBreakdown::~IOBreakdown()
{
    char memData[MEM_DATA_LEN]={0};
    if (!mNote)
        mNote = "";
    if (mMemInfoEnabled) {
        mMemMutex.lock();

        if (mDbgFD < 0) {
            LOGD("dgbopt isn't opened.");
        } else {
            ::write(mDbgFD, DBG_CTRL, 3);
            if (mPipeFD < 0) {
                LOGD("trace_pipe isn't opened.");
            } else {
                int n;
                do {
                    n = ::read(mPipeFD, memData, MEM_DATA_LEN - 1);
                }while (n<=0);
                LOGD("memory <%s,%d>:%s", mNote, n, memData);
            }
        }
        mMemMutex.unlock();
    }

    LOGD("IOBreakdown-step %s:%s, Time: %lld us, Diff: %lld us",
             mFuncName, mNote, gIOBreakdown.timeUs(), gIOBreakdown.lastTimeUs());
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:28,代码来源:PerformanceTraces.cpp

示例3: mFuncName

/**
 * To indicate the performance and memory for every IOCTL call.
 *
 * @arg func, the function name which called it.
 * @arg note, a string printed with IOCTL information.
 */
IOBreakdown::IOBreakdown(const char *func, const char *note):
 mFuncName(func)
,mNote(note)
{
    if (gIOBreakdown.isRunning()) {
        gIOBreakdown.timeUs();
        gIOBreakdown.lastTimeUs();
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:15,代码来源:PerformanceTraces.cpp


注:本文中的PerformanceTimer::lastTimeUs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。