• Home
  • Raw
  • Download

Lines Matching refs:index

46     uint32_t index = static_cast<uint32_t>(ns2ms(frameTime));  in frameCountIndexForFrameTime()  local
49 uint32_t mask = -(index > kBucketMinThreshold); in frameCountIndexForFrameTime()
55 index = ((index - kBucket4msIntervals) >> (index > kBucket4msIntervals)) + kBucket4msIntervals; in frameCountIndexForFrameTime()
56 index = ((index - kBucket2msIntervals) >> (index > kBucket2msIntervals)) + kBucket2msIntervals; in frameCountIndexForFrameTime()
60 index = (index - kBucketMinThreshold) & mask; in frameCountIndexForFrameTime()
61 return index; in frameCountIndexForFrameTime()
65 uint32_t ProfileData::frameTimeForFrameCountIndex(uint32_t index) { in frameTimeForFrameCountIndex() argument
66 index = index + kBucketMinThreshold; in frameTimeForFrameCountIndex()
67 if (index > kBucket2msIntervals) { in frameTimeForFrameCountIndex()
68 index += (index - kBucket2msIntervals); in frameTimeForFrameCountIndex()
70 if (index > kBucket4msIntervals) { in frameTimeForFrameCountIndex()
73 index += (index - kBucket4msIntervals) + 1; in frameTimeForFrameCountIndex()
75 return index; in frameTimeForFrameCountIndex()
78 uint32_t ProfileData::frameTimeForSlowFrameCountIndex(uint32_t index) { in frameTimeForSlowFrameCountIndex() argument
79 return (index * kSlowFrameBucketIntervalMs) + kSlowFrameBucketStartMs; in frameTimeForSlowFrameCountIndex()
210 uint32_t ProfileData::GPUFrameTimeForFrameCountIndex(uint32_t index) { in GPUFrameTimeForFrameCountIndex() argument
211 return index != 25 ? index + 1 : 4950; in GPUFrameTimeForFrameCountIndex()
215 uint32_t index = static_cast<uint32_t>(ns2ms(duration)); in reportGPUFrame() local
216 if (index > 25) { in reportGPUFrame()
217 index = 25; in reportGPUFrame()
220 mGPUFrameCounts[index]++; in reportGPUFrame()