Home | History | Annotate | Download | only in perfetto_cmd

Lines Matching refs:Args

139   RateLimiter::Args args;
141 args.allow_user_build_tracing = true;
142 args.is_dropbox = true;
143 args.ignore_guardrails = true;
144 args.current_time = base::TimeSeconds(41);
148 ASSERT_TRUE(limiter.ShouldTrace(args));
151 ASSERT_TRUE(limiter.OnTraceDone(args, true, 42u));
162 RateLimiter::Args args;
164 args.allow_user_build_tracing = true;
165 args.is_dropbox = true;
166 args.current_time = base::TimeSeconds(10000);
170 ASSERT_TRUE(limiter.ShouldTrace(args));
173 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024));
184 RateLimiter::Args args;
192 args.allow_user_build_tracing = true;
193 args.is_dropbox = true;
194 args.current_time = base::TimeSeconds(input.last_trace_timestamp() + 60 * 10);
197 ASSERT_TRUE(limiter.ShouldTrace(args));
200 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024));
207 static_cast<uint64_t>(args.current_time.count()));
212 RateLimiter::Args args;
214 args.allow_user_build_tracing = true;
215 args.is_dropbox = true;
221 ASSERT_FALSE(limiter.ShouldTrace(args));
232 RateLimiter::Args args;
239 args.allow_user_build_tracing = true;
240 args.is_dropbox = true;
241 args.current_time = base::TimeSeconds(99);
245 ASSERT_FALSE(limiter.ShouldTrace(args));
256 RateLimiter::Args args;
263 args.allow_user_build_tracing = true;
264 args.is_dropbox = true;
265 args.current_time = base::TimeSeconds(10000 + 60 * 4);
268 ASSERT_FALSE(limiter.ShouldTrace(args));
273 RateLimiter::Args args;
279 args.allow_user_build_tracing = true;
280 args.is_dropbox = true;
281 args.current_time = base::TimeSeconds(60 * 60);
284 ASSERT_FALSE(limiter.ShouldTrace(args));
289 RateLimiter::Args args;
295 args.allow_user_build_tracing = true;
296 args.is_dropbox = true;
297 args.current_time = base::TimeSeconds(60 * 60);
298 args.max_upload_bytes_override = 10 * 1024 * 1024 + 2;
301 ASSERT_TRUE(limiter.ShouldTrace(args));
306 RateLimiter::Args args;
314 args.is_dropbox = true;
315 args.current_time = base::TimeSeconds(60 * 60 * 24 + 2);
318 ASSERT_TRUE(limiter.ShouldTrace(args));
321 ASSERT_TRUE(limiter.OnTraceDone(args, true, 1024 * 1024));
327 static_cast<uint64_t>(args.current_time.count()));
329 static_cast<uint64_t>(args.current_time.count()));
334 RateLimiter::Args args;
336 args.is_dropbox = true;
337 args.current_time = base::TimeSeconds(10000);
341 ASSERT_TRUE(limiter.ShouldTrace(args));
342 ASSERT_FALSE(limiter.OnTraceDone(args, false, 1024 * 1024));
347 RateLimiter::Args args;
349 args.is_dropbox = true;
350 args.current_time = base::TimeSeconds(10000);
354 ASSERT_TRUE(limiter.ShouldTrace(args));
357 ASSERT_FALSE(limiter.OnTraceDone(args, true, 1024 * 1024));
362 RateLimiter::Args args;
364 args.allow_user_build_tracing = false;
365 args.is_dropbox = true;
366 args.current_time = base::TimeSeconds(10000);
373 ASSERT_TRUE(limiter.ShouldTrace(args));
377 ASSERT_FALSE(limiter.ShouldTrace(args));