本文整理汇总了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());
}
}
示例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());
}
示例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();
}
}