datastats.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2009, 2010 Université de Bordeaux 1
  4. * Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __DATASTATS_H__
  18. #define __DATASTATS_H__
  19. #include <starpu.h>
  20. #include <common/config.h>
  21. #include <stdint.h>
  22. #include <stdlib.h>
  23. void _starpu_msi_cache_hit(unsigned node);
  24. void _starpu_msi_cache_miss(unsigned node);
  25. void _starpu_display_msi_stats(void);
  26. void _starpu_allocation_cache_hit(unsigned node __attribute__ ((unused)));
  27. void _starpu_data_allocation_inc_stats(unsigned node __attribute__ ((unused)));
  28. void _starpu_comm_amounts_inc(unsigned src, unsigned dst, size_t size);
  29. void _starpu_display_comm_amounts(void);
  30. void _starpu_display_alloc_cache_stats(void);
  31. void _starpu_display_data_stats();
  32. void _starpu_display_data_handle_stats(starpu_data_handle_t handle);
  33. void _starpu_handle_stats_cache_hit(starpu_data_handle_t handle, unsigned node);
  34. void _starpu_handle_stats_loaded_shared(starpu_data_handle_t handle, unsigned node);
  35. void _starpu_handle_stats_loaded_owner(starpu_data_handle_t handle, unsigned node);
  36. void _starpu_handle_stats_shared_to_owner(starpu_data_handle_t handle, unsigned node);
  37. void _starpu_handle_stats_invalidated(starpu_data_handle_t handle, unsigned node);
  38. #endif // __DATASTATS_H__