statistics.c 792 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. * SPDX-License-Identifier: Apache-2.0.
  4. */
  5. #include <aws/common/statistics.h>
  6. void aws_crt_statistics_handler_process_statistics(
  7. struct aws_crt_statistics_handler *handler,
  8. struct aws_crt_statistics_sample_interval *interval,
  9. struct aws_array_list *stats,
  10. void *context) {
  11. handler->vtable->process_statistics(handler, interval, stats, context);
  12. }
  13. uint64_t aws_crt_statistics_handler_get_report_interval_ms(struct aws_crt_statistics_handler *handler) {
  14. return handler->vtable->get_report_interval_ms(handler);
  15. }
  16. void aws_crt_statistics_handler_destroy(struct aws_crt_statistics_handler *handler) {
  17. if (handler == NULL) {
  18. return;
  19. }
  20. handler->vtable->destroy(handler);
  21. }