Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skif::Stats Struct Reference

#include <SkImageFilterTypes.h>

Public Member Functions

void dumpStats () const
 
void reportStats () const
 

Public Attributes

int fNumVisitedImageFilters = 0
 
int fNumCacheHits = 0
 
int fNumOffscreenSurfaces = 0
 
int fNumShaderClampedDraws = 0
 
int fNumShaderBasedTilingDraws = 0
 

Detailed Description

Definition at line 1129 of file SkImageFilterTypes.h.

Member Function Documentation

◆ dumpStats()

void Stats::dumpStats ( ) const

Definition at line 227 of file SkImageFilterTypes.cpp.

227 {
228 SkDebugf("ImageFilter Stats:\n"
229 " # visited filters: %d\n"
230 " # cache hits: %d\n"
231 " # offscreen surfaces: %d\n"
232 " # shader-clamped draws: %d\n"
233 " # shader-tiled draws: %d\n",
239}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1

◆ reportStats()

void Stats::reportStats ( ) const

Definition at line 241 of file SkImageFilterTypes.cpp.

241 {
242 TRACE_EVENT_INSTANT2("skia", "ImageFilter Graph Size", TRACE_EVENT_SCOPE_THREAD,
243 "count", fNumVisitedImageFilters, "cache hits", fNumCacheHits);
244 TRACE_EVENT_INSTANT1("skia", "ImageFilter Surfaces", TRACE_EVENT_SCOPE_THREAD,
245 "count", fNumOffscreenSurfaces);
246 TRACE_EVENT_INSTANT2("skia", "ImageFilter Shader Tiling", TRACE_EVENT_SCOPE_THREAD,
248}
#define TRACE_EVENT_SCOPE_THREAD
#define TRACE_EVENT_INSTANT2(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)
Definition: trace_event.h:184
#define TRACE_EVENT_INSTANT1(category_group, name, arg1_name, arg1_val)
Definition: trace_event.h:179

Member Data Documentation

◆ fNumCacheHits

int skif::Stats::fNumCacheHits = 0

Definition at line 1131 of file SkImageFilterTypes.h.

◆ fNumOffscreenSurfaces

int skif::Stats::fNumOffscreenSurfaces = 0

Definition at line 1132 of file SkImageFilterTypes.h.

◆ fNumShaderBasedTilingDraws

int skif::Stats::fNumShaderBasedTilingDraws = 0

Definition at line 1134 of file SkImageFilterTypes.h.

◆ fNumShaderClampedDraws

int skif::Stats::fNumShaderClampedDraws = 0

Definition at line 1133 of file SkImageFilterTypes.h.

◆ fNumVisitedImageFilters

int skif::Stats::fNumVisitedImageFilters = 0

Definition at line 1130 of file SkImageFilterTypes.h.


The documentation for this struct was generated from the following files: