@@ -311,40 +311,76 @@ void UmaHistogramMicrosecondsTimes(const char* name, TimeDelta sample) {
311
311
Seconds (10 ), 50 );
312
312
}
313
313
314
- void UmaHistogramMemoryKB (std::string_view name, int sample ) {
315
- UmaHistogramCustomCounts (name, sample , 1000 , 500000 , 50 );
314
+ void UmaHistogramMemoryKB (std::string_view name, int sample_kb ) {
315
+ UmaHistogramCustomCounts (name, sample_kb , 1000 , 500000 , 50 );
316
316
}
317
317
318
- void UmaHistogramMemoryKB (const std::string& name, int sample ) {
319
- UmaHistogramCustomCounts (name, sample , 1000 , 500000 , 50 );
318
+ void UmaHistogramMemoryKB (const std::string& name, int sample_kb ) {
319
+ UmaHistogramCustomCounts (name, sample_kb , 1000 , 500000 , 50 );
320
320
}
321
321
322
- void UmaHistogramMemoryKB (const char * name, int sample ) {
323
- UmaHistogramCustomCounts (name, sample , 1000 , 500000 , 50 );
322
+ void UmaHistogramMemoryKB (const char * name, int sample_kb ) {
323
+ UmaHistogramCustomCounts (name, sample_kb , 1000 , 500000 , 50 );
324
324
}
325
325
326
- void UmaHistogramMemoryMB (std::string_view name, int sample) {
327
- UmaHistogramCustomCounts (name, sample, 1 , 1000 , 50 );
326
+ void UmaHistogramMemoryKB (std::string_view name, ByteCount sample) {
327
+ UmaHistogramMemoryKB (name, static_cast < int >( sample. InKiB ()) );
328
328
}
329
329
330
- void UmaHistogramMemoryMB (const std::string& name, int sample) {
331
- UmaHistogramCustomCounts (name, sample, 1 , 1000 , 50 );
330
+ void UmaHistogramMemoryKB (const std::string& name, ByteCount sample) {
331
+ UmaHistogramMemoryKB (name, static_cast < int >( sample. InKiB ()) );
332
332
}
333
333
334
- void UmaHistogramMemoryMB (const char * name, int sample) {
335
- UmaHistogramCustomCounts (name, sample, 1 , 1000 , 50 );
334
+ void UmaHistogramMemoryKB (const char * name, ByteCount sample) {
335
+ UmaHistogramMemoryKB (name, static_cast <int >(sample.InKiB ()));
336
+ }
337
+
338
+ void UmaHistogramMemoryMB (std::string_view name, int sample_mb) {
339
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 1000 , 50 );
340
+ }
341
+
342
+ void UmaHistogramMemoryMB (const std::string& name, int sample_mb) {
343
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 1000 , 50 );
344
+ }
345
+
346
+ void UmaHistogramMemoryMB (const char * name, int sample_mb) {
347
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 1000 , 50 );
348
+ }
349
+
350
+ void UmaHistogramMemoryMB (std::string_view name, ByteCount sample) {
351
+ UmaHistogramMemoryMB (name, static_cast <int >(sample.InMiB ()));
352
+ }
353
+
354
+ void UmaHistogramMemoryMB (const std::string& name, ByteCount sample) {
355
+ UmaHistogramMemoryMB (name, static_cast <int >(sample.InMiB ()));
356
+ }
357
+
358
+ void UmaHistogramMemoryMB (const char * name, ByteCount sample) {
359
+ UmaHistogramMemoryMB (name, static_cast <int >(sample.InMiB ()));
360
+ }
361
+
362
+ void UmaHistogramMemoryLargeMB (std::string_view name, int sample_mb) {
363
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 64000 , 100 );
364
+ }
365
+
366
+ void UmaHistogramMemoryLargeMB (const std::string& name, int sample_mb) {
367
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 64000 , 100 );
368
+ }
369
+
370
+ void UmaHistogramMemoryLargeMB (const char * name, int sample_mb) {
371
+ UmaHistogramCustomCounts (name, sample_mb, 1 , 64000 , 100 );
336
372
}
337
373
338
- void UmaHistogramMemoryLargeMB (std::string_view name, int sample) {
339
- UmaHistogramCustomCounts (name, sample, 1 , 64000 , 100 );
374
+ void UmaHistogramMemoryLargeMB (std::string_view name, ByteCount sample) {
375
+ UmaHistogramMemoryLargeMB (name, static_cast < int >( sample. InMiB ()) );
340
376
}
341
377
342
- void UmaHistogramMemoryLargeMB (const std::string& name, int sample) {
343
- UmaHistogramCustomCounts (name, sample, 1 , 64000 , 100 );
378
+ void UmaHistogramMemoryLargeMB (const std::string& name, ByteCount sample) {
379
+ UmaHistogramMemoryLargeMB (name, static_cast < int >( sample. InMiB ()) );
344
380
}
345
381
346
- void UmaHistogramMemoryLargeMB (const char * name, int sample) {
347
- UmaHistogramCustomCounts (name, sample, 1 , 64000 , 100 );
382
+ void UmaHistogramMemoryLargeMB (const char * name, ByteCount sample) {
383
+ UmaHistogramMemoryLargeMB (name, static_cast < int >( sample. InMiB ()) );
348
384
}
349
385
350
386
void UmaHistogramSparse (std::string_view name, int sample) {
0 commit comments