text: /**
   * @file   stats_all.h
   *
   * @section LICENSE
   *
   * The MIT License
   *
   * @copyright Copyright (c) 2018 TileDB, Inc.
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   *
   * @section DESCRIPTION
   *
   * This file contains declarations of statistics variables.
   */
  
  #ifdef STATS_DEFINE_FUNC_STAT
  // Compressors
  STATS_DEFINE_FUNC_STAT(compressor_blosc_compress)
  STATS_DEFINE_FUNC_STAT(compressor_blosc_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_bzip_compress)
  STATS_DEFINE_FUNC_STAT(compressor_bzip_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_dd_compress)
  STATS_DEFINE_FUNC_STAT(compressor_dd_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_gzip_compress)
  STATS_DEFINE_FUNC_STAT(compressor_gzip_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_lz4_compress)
  STATS_DEFINE_FUNC_STAT(compressor_lz4_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_rle_compress)
  STATS_DEFINE_FUNC_STAT(compressor_rle_decompress)
  STATS_DEFINE_FUNC_STAT(compressor_zstd_compress)
  STATS_DEFINE_FUNC_STAT(compressor_zstd_decompress)
  // Tile cache
  STATS_DEFINE_FUNC_STAT(cache_lru_evict)
  STATS_DEFINE_FUNC_STAT(cache_lru_insert)
  STATS_DEFINE_FUNC_STAT(cache_lru_invalidate)
  STATS_DEFINE_FUNC_STAT(cache_lru_read)
  STATS_DEFINE_FUNC_STAT(cache_lru_read_partial)
  // Reader
  STATS_DEFINE_FUNC_STAT(reader_compute_cell_ranges)
  STATS_DEFINE_FUNC_STAT(reader_compute_dense_cell_ranges)
  STATS_DEFINE_FUNC_STAT(reader_compute_dense_overlapping_tiles_and_cell_ranges)
  STATS_DEFINE_FUNC_STAT(reader_compute_overlapping_coords)
  STATS_DEFINE_FUNC_STAT(reader_compute_overlapping_tiles)
  STATS_DEFINE_FUNC_STAT(reader_compute_tile_coordinates)
  STATS_DEFINE_FUNC_STAT(reader_copy_fixed_cells)
  STATS_DEFINE_FUNC_STAT(reader_copy_var_cells)
  STATS_DEFINE_FUNC_STAT(reader_dedup_coords)
  STATS_DEFINE_FUNC_STAT(reader_dense_read)
  STATS_DEFINE_FUNC_STAT(reader_fill_coords)
  STATS_DEFINE_FUNC_STAT(reader_init_tile_fragment_dense_cell_range_iters)
  STATS_DEFINE_FUNC_STAT(reader_next_subarray_partition)
  STATS_DEFINE_FUNC_STAT(reader_read)
  STATS_DEFINE_FUNC_STAT(reader_read_all_tiles)
  STATS_DEFINE_FUNC_STAT(reader_sort_coords)
  STATS_DEFINE_FUNC_STAT(reader_sparse_read)
  // Writer
  STATS_DEFINE_FUNC_STAT(writer_check_coord_dups)
  STATS_DEFINE_FUNC_STAT(writer_check_coord_dups_global)
  STATS_DEFINE_FUNC_STAT(writer_compute_coord_dups)
  STATS_DEFINE_FUNC_STAT(writer_compute_coord_dups_global)
  STATS_DEFINE_FUNC_STAT(writer_compute_coords_metadata)
  STATS_DEFINE_FUNC_STAT(writer_compute_write_cell_ranges)
  STATS_DEFINE_FUNC_STAT(writer_create_fragment)
  STATS_DEFINE_FUNC_STAT(writer_global_write)
  STATS_DEFINE_FUNC_STAT(writer_init_global_write_state)
  STATS_DEFINE_FUNC_STAT(writer_init_tile_dense_cell_range_iters)
  STATS_DEFINE_FUNC_STAT(writer_ordered_write)
  STATS_DEFINE_FUNC_STAT(writer_prepare_full_tiles_fixed)
  STATS_DEFINE_FUNC_STAT(writer_prepare_full_tiles_var)
  STATS_DEFINE_FUNC_STAT(writer_prepare_tiles_fixed)
  STATS_DEFINE_FUNC_STAT(writer_prepare_tiles_ordered)
  STATS_DEFINE_FUNC_STAT(writer_prepare_tiles_var)
  STATS_DEFINE_FUNC_STAT(writer_sort_coords)
  STATS_DEFINE_FUNC_STAT(writer_unordered_write)
  STATS_DEFINE_FUNC_STAT(writer_write)
  STATS_DEFINE_FUNC_STAT(writer_write_tiles)
  // StorageManager
  STATS_DEFINE_FUNC_STAT(sm_array_close)
  STATS_DEFINE_FUNC_STAT(sm_array_open)
  STATS_DEFINE_FUNC_STAT(sm_read_from_cache)
  STATS_DEFINE_FUNC_STAT(sm_write_to_cache)
  STATS_DEFINE_FUNC_STAT(sm_query_submit)
  // TileIO
  STATS_DEFINE_FUNC_STAT(tileio_read)
  STATS_DEFINE_FUNC_STAT(tileio_write)
  STATS_DEFINE_FUNC_STAT(tileio_compress_tile)
  STATS_DEFINE_FUNC_STAT(tileio_compress_one_tile)
  STATS_DEFINE_FUNC_STAT(tileio_decompress_tile)
  STATS_DEFINE_FUNC_STAT(tileio_decompress_one_tile)
  // VFS
  STATS_DEFINE_FUNC_STAT(vfs_abs_path)
  STATS_DEFINE_FUNC_STAT(vfs_close_file)
  STATS_DEFINE_FUNC_STAT(vfs_constructor)
  STATS_DEFINE_FUNC_STAT(vfs_create_bucket)
  STATS_DEFINE_FUNC_STAT(vfs_create_dir)
  STATS_DEFINE_FUNC_STAT(vfs_create_file)
  STATS_DEFINE_FUNC_STAT(vfs_destructor)
  STATS_DEFINE_FUNC_STAT(vfs_empty_bucket)
  STATS_DEFINE_FUNC_STAT(vfs_file_size)
  STATS_DEFINE_FUNC_STAT(vfs_filelock_lock)
  STATS_DEFINE_FUNC_STAT(vfs_filelock_unlock)
  STATS_DEFINE_FUNC_STAT(vfs_init)
  STATS_DEFINE_FUNC_STAT(vfs_is_bucket)
  STATS_DEFINE_FUNC_STAT(vfs_is_dir)
  STATS_DEFINE_FUNC_STAT(vfs_is_empty_bucket)
  STATS_DEFINE_FUNC_STAT(vfs_is_file)
  STATS_DEFINE_FUNC_STAT(vfs_ls)
  STATS_DEFINE_FUNC_STAT(vfs_move_file)
  STATS_DEFINE_FUNC_STAT(vfs_move_dir)
  STATS_DEFINE_FUNC_STAT(vfs_open_file)
  STATS_DEFINE_FUNC_STAT(vfs_read)
  STATS_DEFINE_FUNC_STAT(vfs_remove_bucket)
  STATS_DEFINE_FUNC_STAT(vfs_remove_file)
  STATS_DEFINE_FUNC_STAT(vfs_remove_dir)
  STATS_DEFINE_FUNC_STAT(vfs_supports_fs)
  STATS_DEFINE_FUNC_STAT(vfs_sync)
  STATS_DEFINE_FUNC_STAT(vfs_write)
  STATS_DEFINE_FUNC_STAT(vfs_s3_fill_file_buffer)
  STATS_DEFINE_FUNC_STAT(vfs_s3_write_multipart)
  #endif
  
  #ifdef STATS_INIT_FUNC_STAT
  // Compressors
  STATS_INIT_FUNC_STAT(compressor_blosc_compress)
  STATS_INIT_FUNC_STAT(compressor_blosc_decompress)
  STATS_INIT_FUNC_STAT(compressor_bzip_compress)
  STATS_INIT_FUNC_STAT(compressor_bzip_decompress)
  STATS_INIT_FUNC_STAT(compressor_dd_compress)
  STATS_INIT_FUNC_STAT(compressor_dd_decompress)
  STATS_INIT_FUNC_STAT(compressor_gzip_compress)
  STATS_INIT_FUNC_STAT(compressor_gzip_decompress)
  STATS_INIT_FUNC_STAT(compressor_lz4_compress)
  STATS_INIT_FUNC_STAT(compressor_lz4_decompress)
  STATS_INIT_FUNC_STAT(compressor_rle_compress)
  STATS_INIT_FUNC_STAT(compressor_rle_decompress)
  STATS_INIT_FUNC_STAT(compressor_zstd_compress)
  STATS_INIT_FUNC_STAT(compressor_zstd_decompress)
  // Tile cache
  STATS_INIT_FUNC_STAT(cache_lru_evict)
  STATS_INIT_FUNC_STAT(cache_lru_insert)
  STATS_INIT_FUNC_STAT(cache_lru_invalidate)
  STATS_INIT_FUNC_STAT(cache_lru_read)
  STATS_INIT_FUNC_STAT(cache_lru_read_partial)
  // Reader
  STATS_INIT_FUNC_STAT(reader_compute_cell_ranges)
  STATS_INIT_FUNC_STAT(reader_compute_dense_cell_ranges)
  STATS_INIT_FUNC_STAT(reader_compute_dense_overlapping_tiles_and_cell_ranges)
  STATS_INIT_FUNC_STAT(reader_compute_overlapping_coords)
  STATS_INIT_FUNC_STAT(reader_compute_overlapping_tiles)
  STATS_INIT_FUNC_STAT(reader_compute_tile_coordinates)
  STATS_INIT_FUNC_STAT(reader_copy_fixed_cells)
  STATS_INIT_FUNC_STAT(reader_copy_var_cells)
  STATS_INIT_FUNC_STAT(reader_dedup_coords)
  STATS_INIT_FUNC_STAT(reader_dense_read)
  STATS_INIT_FUNC_STAT(reader_fill_coords)
  STATS_INIT_FUNC_STAT(reader_init_tile_fragment_dense_cell_range_iters)
  STATS_INIT_FUNC_STAT(reader_next_subarray_partition)
  STATS_INIT_FUNC_STAT(reader_read)
  STATS_INIT_FUNC_STAT(reader_read_all_tiles)
  STATS_INIT_FUNC_STAT(reader_sort_coords)
  STATS_INIT_FUNC_STAT(reader_sparse_read)
  // Writer
  STATS_INIT_FUNC_STAT(writer_check_coord_dups)
  STATS_INIT_FUNC_STAT(writer_check_coord_dups_global)
  STATS_INIT_FUNC_STAT(writer_compute_coord_dups)
  STATS_INIT_FUNC_STAT(writer_compute_coord_dups_global)
  STATS_INIT_FUNC_STAT(writer_compute_coords_metadata)
  STATS_INIT_FUNC_STAT(writer_compute_write_cell_ranges)
  STATS_INIT_FUNC_STAT(writer_create_fragment)
  STATS_INIT_FUNC_STAT(writer_global_write)
  STATS_INIT_FUNC_STAT(writer_init_global_write_state)
  STATS_INIT_FUNC_STAT(writer_init_tile_dense_cell_range_iters)
  STATS_INIT_FUNC_STAT(writer_ordered_write)
  STATS_INIT_FUNC_STAT(writer_prepare_full_tiles_fixed)
  STATS_INIT_FUNC_STAT(writer_prepare_full_tiles_var)
  STATS_INIT_FUNC_STAT(writer_prepare_tiles_fixed)
  STATS_INIT_FUNC_STAT(writer_prepare_tiles_ordered)
  STATS_INIT_FUNC_STAT(writer_prepare_tiles_var)
  STATS_INIT_FUNC_STAT(writer_sort_coords)
  STATS_INIT_FUNC_STAT(writer_unordered_write)
  STATS_INIT_FUNC_STAT(writer_write)
  STATS_INIT_FUNC_STAT(writer_write_tiles)
  // StorageManager
  STATS_INIT_FUNC_STAT(sm_array_close)
  STATS_INIT_FUNC_STAT(sm_array_open)
  STATS_INIT_FUNC_STAT(sm_read_from_cache)
  STATS_INIT_FUNC_STAT(sm_write_to_cache)
  STATS_INIT_FUNC_STAT(sm_query_submit)
  // TileIO
  STATS_INIT_FUNC_STAT(tileio_read)
  STATS_INIT_FUNC_STAT(tileio_write)
  STATS_INIT_FUNC_STAT(tileio_compress_tile)
  STATS_INIT_FUNC_STAT(tileio_compress_one_tile)
  STATS_INIT_FUNC_STAT(tileio_decompress_tile)
  STATS_INIT_FUNC_STAT(tileio_decompress_one_tile)
  // VFS
  STATS_INIT_FUNC_STAT(vfs_abs_path)
  STATS_INIT_FUNC_STAT(vfs_close_file)
  STATS_INIT_FUNC_STAT(vfs_constructor)
  STATS_INIT_FUNC_STAT(vfs_create_bucket)
  STATS_INIT_FUNC_STAT(vfs_create_dir)
  STATS_INIT_FUNC_STAT(vfs_create_file)
  STATS_INIT_FUNC_STAT(vfs_destructor)
  STATS_INIT_FUNC_STAT(vfs_empty_bucket)
  STATS_INIT_FUNC_STAT(vfs_file_size)
  STATS_INIT_FUNC_STAT(vfs_filelock_lock)
  STATS_INIT_FUNC_STAT(vfs_filelock_unlock)
  STATS_INIT_FUNC_STAT(vfs_init)
  STATS_INIT_FUNC_STAT(vfs_is_bucket)
  STATS_INIT_FUNC_STAT(vfs_is_dir)
  STATS_INIT_FUNC_STAT(vfs_is_empty_bucket)
  STATS_INIT_FUNC_STAT(vfs_is_file)
  STATS_INIT_FUNC_STAT(vfs_ls)
  STATS_INIT_FUNC_STAT(vfs_move_file)
  STATS_INIT_FUNC_STAT(vfs_move_dir)
  STATS_INIT_FUNC_STAT(vfs_open_file)
  STATS_INIT_FUNC_STAT(vfs_read)
  STATS_INIT_FUNC_STAT(vfs_remove_bucket)
  STATS_INIT_FUNC_STAT(vfs_remove_file)
  STATS_INIT_FUNC_STAT(vfs_remove_dir)
  STATS_INIT_FUNC_STAT(vfs_supports_fs)
  STATS_INIT_FUNC_STAT(vfs_sync)
  STATS_INIT_FUNC_STAT(vfs_write)
  STATS_INIT_FUNC_STAT(vfs_s3_fill_file_buffer)
  STATS_INIT_FUNC_STAT(vfs_s3_write_multipart)
  
  #endif
  
  #ifdef STATS_REPORT_FUNC_STAT
  // Compressors
  STATS_REPORT_FUNC_STAT(compressor_blosc_compress)
  STATS_REPORT_FUNC_STAT(compressor_blosc_decompress)
  STATS_REPORT_FUNC_STAT(compressor_bzip_compress)
  STATS_REPORT_FUNC_STAT(compressor_bzip_decompress)
  STATS_REPORT_FUNC_STAT(compressor_dd_compress)
  STATS_REPORT_FUNC_STAT(compressor_dd_decompress)
  STATS_REPORT_FUNC_STAT(compressor_gzip_compress)
  STATS_REPORT_FUNC_STAT(compressor_gzip_decompress)
  STATS_REPORT_FUNC_STAT(compressor_lz4_compress)
  STATS_REPORT_FUNC_STAT(compressor_lz4_decompress)
  STATS_REPORT_FUNC_STAT(compressor_rle_compress)
  STATS_REPORT_FUNC_STAT(compressor_rle_decompress)
  STATS_REPORT_FUNC_STAT(compressor_zstd_compress)
  STATS_REPORT_FUNC_STAT(compressor_zstd_decompress)
  // Tile cache
  STATS_REPORT_FUNC_STAT(cache_lru_evict)
  STATS_REPORT_FUNC_STAT(cache_lru_insert)
  STATS_REPORT_FUNC_STAT(cache_lru_invalidate)
  STATS_REPORT_FUNC_STAT(cache_lru_read)
  STATS_REPORT_FUNC_STAT(cache_lru_read_partial)
  // Reader
  STATS_REPORT_FUNC_STAT(reader_compute_cell_ranges)
  STATS_REPORT_FUNC_STAT(reader_compute_dense_cell_ranges)
  STATS_REPORT_FUNC_STAT(reader_compute_dense_overlapping_tiles_and_cell_ranges)
  STATS_REPORT_FUNC_STAT(reader_compute_overlapping_coords)
  STATS_REPORT_FUNC_STAT(reader_compute_overlapping_tiles)
  STATS_REPORT_FUNC_STAT(reader_compute_tile_coordinates)
  STATS_REPORT_FUNC_STAT(reader_copy_fixed_cells)
  STATS_REPORT_FUNC_STAT(reader_copy_var_cells)
  STATS_REPORT_FUNC_STAT(reader_dedup_coords)
  STATS_REPORT_FUNC_STAT(reader_dense_read)
  STATS_REPORT_FUNC_STAT(reader_fill_coords)
  STATS_REPORT_FUNC_STAT(reader_init_tile_fragment_dense_cell_range_iters)
  STATS_REPORT_FUNC_STAT(reader_next_subarray_partition)
  STATS_REPORT_FUNC_STAT(reader_read)
  STATS_REPORT_FUNC_STAT(reader_read_all_tiles)
  STATS_REPORT_FUNC_STAT(reader_sort_coords)
  STATS_REPORT_FUNC_STAT(reader_sparse_read)
  // Writer
  STATS_REPORT_FUNC_STAT(writer_check_coord_dups)
  STATS_REPORT_FUNC_STAT(writer_check_coord_dups_global)
  STATS_REPORT_FUNC_STAT(writer_compute_coord_dups)
  STATS_REPORT_FUNC_STAT(writer_compute_coord_dups_global)
  STATS_REPORT_FUNC_STAT(writer_compute_coords_metadata)
  STATS_REPORT_FUNC_STAT(writer_compute_write_cell_ranges)
  STATS_REPORT_FUNC_STAT(writer_create_fragment)
  STATS_REPORT_FUNC_STAT(writer_global_write)
  STATS_REPORT_FUNC_STAT(writer_init_global_write_state)
  STATS_REPORT_FUNC_STAT(writer_init_tile_dense_cell_range_iters)
  STATS_REPORT_FUNC_STAT(writer_ordered_write)
  STATS_REPORT_FUNC_STAT(writer_prepare_full_tiles_fixed)
  STATS_REPORT_FUNC_STAT(writer_prepare_full_tiles_var)
  STATS_REPORT_FUNC_STAT(writer_prepare_tiles_fixed)
  STATS_REPORT_FUNC_STAT(writer_prepare_tiles_ordered)
  STATS_REPORT_FUNC_STAT(writer_prepare_tiles_var)
  STATS_REPORT_FUNC_STAT(writer_sort_coords)
  STATS_REPORT_FUNC_STAT(writer_unordered_write)
  STATS_REPORT_FUNC_STAT(writer_write)
  STATS_REPORT_FUNC_STAT(writer_write_tiles)
  // StorageManager
  STATS_REPORT_FUNC_STAT(sm_array_close)
  STATS_REPORT_FUNC_STAT(sm_array_open)
  STATS_REPORT_FUNC_STAT(sm_read_from_cache)
  STATS_REPORT_FUNC_STAT(sm_write_to_cache)
  STATS_REPORT_FUNC_STAT(sm_query_submit)
  // TileIO
  STATS_REPORT_FUNC_STAT(tileio_read)
  STATS_REPORT_FUNC_STAT(tileio_write)
  STATS_REPORT_FUNC_STAT(tileio_compress_tile)
  STATS_REPORT_FUNC_STAT(tileio_compress_one_tile)
  STATS_REPORT_FUNC_STAT(tileio_decompress_tile)
  STATS_REPORT_FUNC_STAT(tileio_decompress_one_tile)
  // VFS
  STATS_REPORT_FUNC_STAT(vfs_abs_path)
  STATS_REPORT_FUNC_STAT(vfs_close_file)
  STATS_REPORT_FUNC_STAT(vfs_constructor)
  STATS_REPORT_FUNC_STAT(vfs_create_bucket)
  STATS_REPORT_FUNC_STAT(vfs_create_dir)
  STATS_REPORT_FUNC_STAT(vfs_create_file)
  STATS_REPORT_FUNC_STAT(vfs_destructor)
  STATS_REPORT_FUNC_STAT(vfs_empty_bucket)
  STATS_REPORT_FUNC_STAT(vfs_file_size)
  STATS_REPORT_FUNC_STAT(vfs_filelock_lock)
  STATS_REPORT_FUNC_STAT(vfs_filelock_unlock)
  STATS_REPORT_FUNC_STAT(vfs_init)
  STATS_REPORT_FUNC_STAT(vfs_is_bucket)
  STATS_REPORT_FUNC_STAT(vfs_is_dir)
  STATS_REPORT_FUNC_STAT(vfs_is_empty_bucket)
  STATS_REPORT_FUNC_STAT(vfs_is_file)
  STATS_REPORT_FUNC_STAT(vfs_ls)
  STATS_REPORT_FUNC_STAT(vfs_move_file)
  STATS_REPORT_FUNC_STAT(vfs_move_dir)
  STATS_REPORT_FUNC_STAT(vfs_open_file)
  STATS_REPORT_FUNC_STAT(vfs_read)
  STATS_REPORT_FUNC_STAT(vfs_remove_bucket)
  STATS_REPORT_FUNC_STAT(vfs_remove_file)
  STATS_REPORT_FUNC_STAT(vfs_remove_dir)
  STATS_REPORT_FUNC_STAT(vfs_supports_fs)
  STATS_REPORT_FUNC_STAT(vfs_sync)
  STATS_REPORT_FUNC_STAT(vfs_write)
  STATS_REPORT_FUNC_STAT(vfs_s3_fill_file_buffer)
  STATS_REPORT_FUNC_STAT(vfs_s3_write_multipart)
  #endif
  
  #ifdef STATS_DEFINE_COUNTER_STAT
  // Cache
  STATS_DEFINE_COUNTER_STAT(cache_lru_inserts)
  STATS_DEFINE_COUNTER_STAT(cache_lru_read_hits)
  STATS_DEFINE_COUNTER_STAT(cache_lru_read_misses)
  // Reader
  STATS_DEFINE_COUNTER_STAT(reader_num_attr_tiles_touched)
  STATS_DEFINE_COUNTER_STAT(reader_num_fixed_cell_bytes_copied)
  STATS_DEFINE_COUNTER_STAT(reader_num_fixed_cell_bytes_read)
  STATS_DEFINE_COUNTER_STAT(reader_num_var_cell_bytes_copied)
  STATS_DEFINE_COUNTER_STAT(reader_num_var_cell_bytes_read)
  // Writer
  STATS_DEFINE_COUNTER_STAT(writer_num_attr_tiles_written)
  // StorageManager
  STATS_DEFINE_COUNTER_STAT(sm_contexts_created)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_layout_col_major)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_layout_row_major)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_layout_global_order)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_layout_unordered)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_read)
  STATS_DEFINE_COUNTER_STAT(sm_query_submit_write)
  // TileIO
  STATS_DEFINE_COUNTER_STAT(tileio_read_cache_hits)
  STATS_DEFINE_COUNTER_STAT(tileio_read_num_bytes_read)
  STATS_DEFINE_COUNTER_STAT(tileio_read_num_resulting_bytes)
  STATS_DEFINE_COUNTER_STAT(tileio_write_num_bytes_written)
  STATS_DEFINE_COUNTER_STAT(tileio_write_num_input_bytes)
  // VFS
  STATS_DEFINE_COUNTER_STAT(vfs_read_total_bytes)
  STATS_DEFINE_COUNTER_STAT(vfs_write_total_bytes)
  STATS_DEFINE_COUNTER_STAT(vfs_read_num_parallelized)
  STATS_DEFINE_COUNTER_STAT(vfs_posix_write_num_parallelized)
  STATS_DEFINE_COUNTER_STAT(vfs_win32_write_num_parallelized)
  STATS_DEFINE_COUNTER_STAT(vfs_s3_num_parts_written)
  STATS_DEFINE_COUNTER_STAT(vfs_s3_write_num_parallelized)
  #endif
  
  #ifdef STATS_INIT_COUNTER_STAT
  // Cache
  STATS_INIT_COUNTER_STAT(cache_lru_inserts)
  STATS_INIT_COUNTER_STAT(cache_lru_read_hits)
  STATS_INIT_COUNTER_STAT(cache_lru_read_misses)
  // Reader
  STATS_INIT_COUNTER_STAT(reader_num_attr_tiles_touched)
  STATS_INIT_COUNTER_STAT(reader_num_fixed_cell_bytes_copied)
  STATS_INIT_COUNTER_STAT(reader_num_fixed_cell_bytes_read)
  STATS_INIT_COUNTER_STAT(reader_num_var_cell_bytes_copied)
  STATS_INIT_COUNTER_STAT(reader_num_var_cell_bytes_read)
  // Writer
  STATS_INIT_COUNTER_STAT(writer_num_attr_tiles_written)
  // StorageManager
  STATS_INIT_COUNTER_STAT(sm_contexts_created)
  STATS_INIT_COUNTER_STAT(sm_query_submit_layout_col_major)
  STATS_INIT_COUNTER_STAT(sm_query_submit_layout_row_major)
  STATS_INIT_COUNTER_STAT(sm_query_submit_layout_global_order)
  STATS_INIT_COUNTER_STAT(sm_query_submit_layout_unordered)
  STATS_INIT_COUNTER_STAT(sm_query_submit_read)
  STATS_INIT_COUNTER_STAT(sm_query_submit_write)
  // TileIO
  STATS_INIT_COUNTER_STAT(tileio_read_cache_hits)
  STATS_INIT_COUNTER_STAT(tileio_read_num_bytes_read)
  STATS_INIT_COUNTER_STAT(tileio_read_num_resulting_bytes)
  STATS_INIT_COUNTER_STAT(tileio_write_num_bytes_written)
  STATS_INIT_COUNTER_STAT(tileio_write_num_input_bytes)
  // VFS
  STATS_INIT_COUNTER_STAT(vfs_read_total_bytes)
  STATS_INIT_COUNTER_STAT(vfs_write_total_bytes)
  STATS_INIT_COUNTER_STAT(vfs_read_num_parallelized)
  STATS_INIT_COUNTER_STAT(vfs_posix_write_num_parallelized)
  STATS_INIT_COUNTER_STAT(vfs_win32_write_num_parallelized)
  STATS_INIT_COUNTER_STAT(vfs_s3_num_parts_written)
  STATS_INIT_COUNTER_STAT(vfs_s3_write_num_parallelized)
  #endif
  
  #ifdef STATS_REPORT_COUNTER_STAT
  // Cache
  STATS_REPORT_COUNTER_STAT(cache_lru_inserts)
  STATS_REPORT_COUNTER_STAT(cache_lru_read_hits)
  STATS_REPORT_COUNTER_STAT(cache_lru_read_misses)
  // Reader
  STATS_REPORT_COUNTER_STAT(reader_num_attr_tiles_touched)
  STATS_REPORT_COUNTER_STAT(reader_num_fixed_cell_bytes_copied)
  STATS_REPORT_COUNTER_STAT(reader_num_fixed_cell_bytes_read)
  STATS_REPORT_COUNTER_STAT(reader_num_var_cell_bytes_copied)
  STATS_REPORT_COUNTER_STAT(reader_num_var_cell_bytes_read)
  // Writer
  STATS_REPORT_COUNTER_STAT(writer_num_attr_tiles_written)
  // StorageManager
  STATS_REPORT_COUNTER_STAT(sm_contexts_created)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_layout_col_major)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_layout_row_major)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_layout_global_order)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_layout_unordered)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_read)
  STATS_REPORT_COUNTER_STAT(sm_query_submit_write)
  // TileIO
  STATS_REPORT_COUNTER_STAT(tileio_read_cache_hits)
  STATS_REPORT_COUNTER_STAT(tileio_read_num_bytes_read)
  STATS_REPORT_COUNTER_STAT(tileio_read_num_resulting_bytes)
  STATS_REPORT_COUNTER_STAT(tileio_write_num_bytes_written)
  STATS_REPORT_COUNTER_STAT(tileio_write_num_input_bytes)
  // VFS
  STATS_REPORT_COUNTER_STAT(vfs_read_total_bytes)
  STATS_REPORT_COUNTER_STAT(vfs_write_total_bytes)
  STATS_REPORT_COUNTER_STAT(vfs_read_num_parallelized)
  STATS_REPORT_COUNTER_STAT(vfs_posix_write_num_parallelized)
  STATS_REPORT_COUNTER_STAT(vfs_win32_write_num_parallelized)
  STATS_REPORT_COUNTER_STAT(vfs_s3_num_parts_written)
  STATS_REPORT_COUNTER_STAT(vfs_s3_write_num_parallelized)
  #endif