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


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

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


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

示例1: LOGD

void Shot2Shot::stop(void)
{
    if (gShot2Shot.isRunning()) {
        if (gPnPBreakdown.isRunning())
            PnPBreakdown::step("Shot2Shot::stop");
            LOGD("shot2shot latency: %lld us.", gShot2Shot.timeUs());
        gShot2Shot.stop();
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:9,代码来源:PerformanceTraces.cpp

示例2: stop

/**
 * Marks that take picture call has been issued.
 *
 * This is needed to reliably detect start and end of shot2shot
 * sequences.
 */
void Shot2Shot::takePictureCalled(void)
{
    if (gShot2Shot.isRunning() == true)
        stop();

    start();
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:13,代码来源:PerformanceTraces.cpp

示例3:

/**
 * Starts shot2shot trace
 */
void Shot2Shot::start(void)
{
    if (gShot2Shot.isRequested()) {
        gShot2Shot.start();
        if (gPnPBreakdown.isRunning())
            PnPBreakdown::step("Shot2Shot::start");
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:11,代码来源:PerformanceTraces.cpp

示例4: start

/**
 * Starts the FaceLock trace.
 */
void FaceLock::start(int frameNum)
{
    if (gFaceLock.isRequested() && !gFaceLock.isRunning()) {
        gFaceLock.formattedTrace("FaceLock", __FUNCTION__);
        gFaceLockFrame = frameNum;
        gFaceLock.start();
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:11,代码来源:PerformanceTraces.cpp

示例5: 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

示例6: snapshotTaken

/**
 * Prints ShutterLag trace results.
 */
void ShutterLag::snapshotTaken(struct timeval *ts)
{
    if (gShutterLag.isRunning()) {
        LOGD("ShutterLag from takePicture() to shot taken:\t%lldms\n",
             (((nsecs_t(ts->tv_sec)*1000000LL
             +  nsecs_t(ts->tv_usec))
             - gShutterLag.mStartAt/1000)/1000));
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:12,代码来源:PerformanceTraces.cpp

示例7: 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

示例8: getCurFrameNum

/**
 * get current preview frame num
 */
void FaceLock::getCurFrameNum(const int mFrameNum)
{
    if (gFaceLock.isRunning()) {
        gFaceLockFrame = mFrameNum - gFaceLockFrame;
    }
}
开发者ID:bju2000,项目名称:android_hardware_intel,代码行数:9,代码来源:PerformanceTraces.cpp


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