Lines Matching refs:state
39 static void BM_AssetManagerLoadAssets(benchmark::State& state) { in BM_AssetManagerLoadAssets() argument
41 while (state.KeepRunning()) { in BM_AssetManagerLoadAssets()
49 static void BM_AssetManagerLoadAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadAssetsOld() argument
51 while (state.KeepRunning()) { in BM_AssetManagerLoadAssetsOld()
62 static void BM_AssetManagerLoadFrameworkAssets(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssets() argument
64 while (state.KeepRunning()) { in BM_AssetManagerLoadFrameworkAssets()
72 static void BM_AssetManagerLoadFrameworkAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssetsOld() argument
74 while (state.KeepRunning()) { in BM_AssetManagerLoadFrameworkAssetsOld()
87 benchmark::State& state) { in GetResourceBenchmark() argument
93 state.SkipWithError(base::StringPrintf("Failed to load assets %s", path.c_str()).c_str()); in GetResourceBenchmark()
110 while (state.KeepRunning()) { in GetResourceBenchmark()
116 static void BM_AssetManagerGetResource(benchmark::State& state) { in BM_AssetManagerGetResource() argument
118 basic::R::integer::number1, state); in BM_AssetManagerGetResource()
122 static void BM_AssetManagerGetResourceOld(benchmark::State& state) { in BM_AssetManagerGetResourceOld() argument
124 basic::R::integer::number1, state); in BM_AssetManagerGetResourceOld()
128 static void BM_AssetManagerGetLibraryResource(benchmark::State& state) { in BM_AssetManagerGetLibraryResource() argument
132 nullptr /*config*/, libclient::R::string::foo_one, state); in BM_AssetManagerGetLibraryResource()
136 static void BM_AssetManagerGetLibraryResourceOld(benchmark::State& state) { in BM_AssetManagerGetLibraryResourceOld() argument
140 nullptr /*config*/, libclient::R::string::foo_one, state); in BM_AssetManagerGetLibraryResourceOld()
146 static void BM_AssetManagerGetResourceFrameworkLocale(benchmark::State& state) { in BM_AssetManagerGetResourceFrameworkLocale() argument
150 GetResourceBenchmark({kFrameworkPath}, &config, kStringOkId, state); in BM_AssetManagerGetResourceFrameworkLocale()
154 static void BM_AssetManagerGetResourceFrameworkLocaleOld(benchmark::State& state) { in BM_AssetManagerGetResourceFrameworkLocaleOld() argument
158 GetResourceBenchmarkOld({kFrameworkPath}, &config, kStringOkId, state); in BM_AssetManagerGetResourceFrameworkLocaleOld()
162 static void BM_AssetManagerGetBag(benchmark::State& state) { in BM_AssetManagerGetBag() argument
165 state.SkipWithError("Failed to load assets"); in BM_AssetManagerGetBag()
172 while (state.KeepRunning()) { in BM_AssetManagerGetBag()
185 static void BM_AssetManagerGetBagOld(benchmark::State& state) { in BM_AssetManagerGetBagOld() argument
189 state.SkipWithError("Failed to load assets"); in BM_AssetManagerGetBagOld()
195 while (state.KeepRunning()) { in BM_AssetManagerGetBagOld()
210 static void BM_AssetManagerGetResourceLocales(benchmark::State& state) { in BM_AssetManagerGetResourceLocales() argument
213 state.SkipWithError("Failed to load assets"); in BM_AssetManagerGetResourceLocales()
220 while (state.KeepRunning()) { in BM_AssetManagerGetResourceLocales()
228 static void BM_AssetManagerGetResourceLocalesOld(benchmark::State& state) { in BM_AssetManagerGetResourceLocalesOld() argument
232 state.SkipWithError("Failed to load assets"); in BM_AssetManagerGetResourceLocalesOld()
238 while (state.KeepRunning()) { in BM_AssetManagerGetResourceLocalesOld()