Lines Matching refs:dprintf

235             dprintf(fd, "Non-proto format of stats data dump not available; see proto version.\n");  in dump()
250 dprintf(out, "%c", data[i]); in dumpStatsdStats()
371 dprintf(out, in print_cmd_help()
374 dprintf(out, "\n"); in print_cmd_help()
375 dprintf(out, "\n"); in print_cmd_help()
376 dprintf(out, "usage: adb shell cmd stats meminfo\n"); in print_cmd_help()
377 dprintf(out, "\n"); in print_cmd_help()
378 dprintf(out, " Prints the malloc debug information. You need to run the following first: \n"); in print_cmd_help()
379 dprintf(out, " # adb shell stop\n"); in print_cmd_help()
380 dprintf(out, " # adb shell setprop libc.debug.malloc.program statsd \n"); in print_cmd_help()
381 dprintf(out, " # adb shell setprop libc.debug.malloc.options backtrace \n"); in print_cmd_help()
382 dprintf(out, " # adb shell start\n"); in print_cmd_help()
383 dprintf(out, "\n"); in print_cmd_help()
384 dprintf(out, "\n"); in print_cmd_help()
385 dprintf(out, "usage: adb shell cmd stats print-uid-map [PKG]\n"); in print_cmd_help()
386 dprintf(out, "\n"); in print_cmd_help()
387 dprintf(out, " Prints the UID, app name, version mapping.\n"); in print_cmd_help()
388 dprintf(out, " PKG Optional package name to print the uids of the package\n"); in print_cmd_help()
389 dprintf(out, "\n"); in print_cmd_help()
390 dprintf(out, "\n"); in print_cmd_help()
391 dprintf(out, "usage: adb shell cmd stats pull-source ATOM_TAG [PACKAGE] \n"); in print_cmd_help()
392 dprintf(out, "\n"); in print_cmd_help()
393 dprintf(out, " Prints the output of a pulled atom\n"); in print_cmd_help()
394 dprintf(out, " UID The atom to pull\n"); in print_cmd_help()
395 dprintf(out, " PACKAGE The package to pull from. Default is AID_SYSTEM\n"); in print_cmd_help()
396 dprintf(out, "\n"); in print_cmd_help()
397 dprintf(out, "\n"); in print_cmd_help()
398 dprintf(out, "usage: adb shell cmd stats write-to-disk \n"); in print_cmd_help()
399 dprintf(out, "\n"); in print_cmd_help()
400 dprintf(out, " Flushes all data on memory to disk.\n"); in print_cmd_help()
401 dprintf(out, "\n"); in print_cmd_help()
402 dprintf(out, "\n"); in print_cmd_help()
403 dprintf(out, "usage: adb shell cmd stats log-app-breadcrumb [UID] LABEL STATE\n"); in print_cmd_help()
404 dprintf(out, " Writes an AppBreadcrumbReported event to the statslog buffer.\n"); in print_cmd_help()
405 dprintf(out, " UID The uid to use. It is only possible to pass a UID\n"); in print_cmd_help()
406 dprintf(out, " parameter on eng builds. If UID is omitted the calling\n"); in print_cmd_help()
407 dprintf(out, " uid is used.\n"); in print_cmd_help()
408 dprintf(out, " LABEL Integer in [0, 15], as per atoms.proto.\n"); in print_cmd_help()
409 dprintf(out, " STATE Integer in [0, 3], as per atoms.proto.\n"); in print_cmd_help()
410 dprintf(out, "\n"); in print_cmd_help()
411 dprintf(out, "\n"); in print_cmd_help()
412 dprintf(out, in print_cmd_help()
415 dprintf(out, " Log a binary push state changed event.\n"); in print_cmd_help()
416 dprintf(out, " NAME The train name.\n"); in print_cmd_help()
417 dprintf(out, " VERSION The train version code.\n"); in print_cmd_help()
418 dprintf(out, " STAGING If this train requires a restart.\n"); in print_cmd_help()
419 dprintf(out, " ROLLBACK_ENABLED If rollback should be enabled for this install.\n"); in print_cmd_help()
420 dprintf(out, " LOW_LATENCY If the train requires low latency monitoring.\n"); in print_cmd_help()
421 dprintf(out, " STATE The status of the train push.\n"); in print_cmd_help()
422 dprintf(out, " Integer value of the enum in atoms.proto.\n"); in print_cmd_help()
423 dprintf(out, " EXPERIMENT_IDS Comma separated list of experiment ids.\n"); in print_cmd_help()
424 dprintf(out, " Leave blank for none.\n"); in print_cmd_help()
425 dprintf(out, "\n"); in print_cmd_help()
426 dprintf(out, "\n"); in print_cmd_help()
427 dprintf(out, "usage: adb shell cmd stats config remove [UID] [NAME]\n"); in print_cmd_help()
428 dprintf(out, "usage: adb shell cmd stats config update [UID] NAME\n"); in print_cmd_help()
429 dprintf(out, "\n"); in print_cmd_help()
430 dprintf(out, " Adds, updates or removes a configuration. The proto should be in\n"); in print_cmd_help()
431 dprintf(out, " wire-encoded protobuf format and passed via stdin. If no UID and name is\n"); in print_cmd_help()
432 dprintf(out, " provided, then all configs will be removed from memory and disk.\n"); in print_cmd_help()
433 dprintf(out, "\n"); in print_cmd_help()
434 dprintf(out, " UID The uid to use. It is only possible to pass the UID\n"); in print_cmd_help()
435 dprintf(out, " parameter on eng builds. If UID is omitted the calling\n"); in print_cmd_help()
436 dprintf(out, " uid is used.\n"); in print_cmd_help()
437 dprintf(out, " NAME The per-uid name to use\n"); in print_cmd_help()
438 dprintf(out, "\n"); in print_cmd_help()
439 dprintf(out, "\n *Note: If both UID and NAME are omitted then all configs will\n"); in print_cmd_help()
440 dprintf(out, "\n be removed from memory and disk!\n"); in print_cmd_help()
441 dprintf(out, "\n"); in print_cmd_help()
442 dprintf(out, in print_cmd_help()
445 dprintf(out, " Dump all metric data for a configuration.\n"); in print_cmd_help()
446 dprintf(out, " UID The uid of the configuration. It is only possible to pass\n"); in print_cmd_help()
447 dprintf(out, " the UID parameter on eng builds. If UID is omitted the\n"); in print_cmd_help()
448 dprintf(out, " calling uid is used.\n"); in print_cmd_help()
449 dprintf(out, " NAME The name of the configuration\n"); in print_cmd_help()
450 dprintf(out, " --keep_data Do NOT erase the data upon dumping it.\n"); in print_cmd_help()
451 dprintf(out, " --proto Print proto binary.\n"); in print_cmd_help()
452 dprintf(out, "\n"); in print_cmd_help()
453 dprintf(out, "\n"); in print_cmd_help()
454 dprintf(out, "usage: adb shell cmd stats send-broadcast [UID] NAME\n"); in print_cmd_help()
455 dprintf(out, " Send a broadcast that triggers the subscriber to fetch metrics.\n"); in print_cmd_help()
456 dprintf(out, " UID The uid of the configuration. It is only possible to pass\n"); in print_cmd_help()
457 dprintf(out, " the UID parameter on eng builds. If UID is omitted the\n"); in print_cmd_help()
458 dprintf(out, " calling uid is used.\n"); in print_cmd_help()
459 dprintf(out, " NAME The name of the configuration\n"); in print_cmd_help()
460 dprintf(out, "\n"); in print_cmd_help()
461 dprintf(out, "\n"); in print_cmd_help()
462 dprintf(out, in print_cmd_help()
465 dprintf(out, " Send a broadcast that informs the subscriber of the current active configs.\n"); in print_cmd_help()
466 dprintf(out, " --uid=UID The uid of the configurations. It is only possible to pass\n"); in print_cmd_help()
467 dprintf(out, " the UID parameter on eng builds. If UID is omitted the\n"); in print_cmd_help()
468 dprintf(out, " calling uid is used.\n"); in print_cmd_help()
469 dprintf(out, " --configs Send the list of configs in the name list instead of\n"); in print_cmd_help()
470 dprintf(out, " the currently active configs\n"); in print_cmd_help()
471 dprintf(out, " NAME LIST List of configuration names to be included in the broadcast.\n"); in print_cmd_help()
472 dprintf(out, "\n"); in print_cmd_help()
473 dprintf(out, "\n"); in print_cmd_help()
474 dprintf(out, "usage: adb shell cmd stats print-stats\n"); in print_cmd_help()
475 dprintf(out, " Prints some basic stats.\n"); in print_cmd_help()
476 dprintf(out, " --proto Print proto binary instead of string format.\n"); in print_cmd_help()
477 dprintf(out, "\n"); in print_cmd_help()
478 dprintf(out, "\n"); in print_cmd_help()
479 dprintf(out, "usage: adb shell cmd stats clear-puller-cache\n"); in print_cmd_help()
480 dprintf(out, " Clear cached puller data.\n"); in print_cmd_help()
481 dprintf(out, "\n"); in print_cmd_help()
482 dprintf(out, "usage: adb shell cmd stats print-logs\n"); in print_cmd_help()
483 dprintf(out, " Requires root privileges.\n"); in print_cmd_help()
484 dprintf(out, " Can be disabled by calling adb shell cmd stats print-logs 0\n"); in print_cmd_help()
500 dprintf(out, "Invalid UID. Note that the metrics can only be dumped for " in cmd_trigger_broadcast()
538 dprintf(out, "Invalid UID. Note that the config can only be set for " in cmd_trigger_active_config_broadcast()
556 dprintf(out, "Error parsing config ID.\n"); in cmd_trigger_active_config_broadcast()
593 dprintf(err, "Invalid UID. Note that the config can only be set for " in cmd_config()
611 dprintf(err, "Error parsing config ID.\n"); in cmd_config()
618 dprintf(err, "Error reading stream for StatsConfig.\n"); in cmd_config()
625 dprintf(err, "Error parsing proto stream for StatsConfig.\n"); in cmd_config()
676 dprintf(out, "Invalid UID. Note that the metrics can only be dumped for " in cmd_dump_report()
689 dprintf(out, "%c", data[i]); in cmd_dump_report()
692 dprintf(out, "Non-proto stats data dump not currently supported.\n"); in cmd_dump_report()
701 dprintf(out, "Log processor does not exist...\n"); in cmd_dump_report()
718 dprintf(out, "%c", data[i]); in cmd_print_stats()
724 dprintf(out, "Config %s uses %zu bytes\n", key.ToString().c_str(), in cmd_print_stats()
737 dprintf(out, "%s -> [ ", pkg.c_str()); in cmd_print_uid_map()
739 dprintf(out, "%d ", uid); in cmd_print_uid_map()
741 dprintf(out, "]\n"); in cmd_print_uid_map()
749 dprintf(out, "Writing data to disk\n"); in cmd_write_data_to_disk()
769 dprintf(out, in cmd_log_app_breadcrumb()
777 dprintf(out, "Logging AppBreadcrumbReported(%d, %d, %d) to statslog.\n", uid, label, state); in cmd_log_app_breadcrumb()
791 dprintf(out, "Incorrect number of argument supplied\n"); in cmd_log_binary_push()
805 dprintf(out, "Logging BinaryPushStateChanged\n"); in cmd_log_binary_push()
831 dprintf(out, "Pull from %d: %s\n", s, it->ToString().c_str()); in cmd_print_pulled_metrics()
833 dprintf(out, "Pull from %d: Received %zu elements\n", s, stats.size()); in cmd_print_pulled_metrics()
840 dprintf(out, "Removing all configs...\n"); in cmd_remove_all_configs()
848 dprintf(out, "meminfo not available.\n"); in cmd_dump_memory_info()
857 dprintf(out, "Puller removed %d cached data!\n", cleared); in cmd_clear_puller_cache()