#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
// This must be first to make the 64-bit file mode work right in Linux
#include"fttypes.h"
typedefenum{
FT_FLUSHER_CLEANER_TOTAL_NODES=0,// total number of nodes whose buffers are potentially flushed by cleaner thread
FT_FLUSHER_CLEANER_H1_NODES,// number of nodes of height one whose message buffers are flushed by cleaner thread
FT_FLUSHER_CLEANER_HGT1_NODES,// number of nodes of height > 1 whose message buffers are flushed by cleaner thread
FT_FLUSHER_CLEANER_EMPTY_NODES,// number of nodes that are selected by cleaner, but whose buffers are empty
FT_FLUSHER_CLEANER_NODES_DIRTIED,// number of nodes that are made dirty by the cleaner thread
FT_FLUSHER_CLEANER_MAX_BUFFER_SIZE,// max number of bytes in message buffer flushed by cleaner thread
FT_FLUSHER_CLEANER_MIN_BUFFER_SIZE,
FT_FLUSHER_CLEANER_TOTAL_BUFFER_SIZE,
FT_FLUSHER_CLEANER_MAX_BUFFER_WORKDONE,// max workdone value of any message buffer flushed by cleaner thread
FT_FLUSHER_CLEANER_MIN_BUFFER_WORKDONE,
FT_FLUSHER_CLEANER_TOTAL_BUFFER_WORKDONE,
FT_FLUSHER_CLEANER_NUM_LEAF_MERGES_STARTED,// number of times cleaner thread tries to merge a leaf
FT_FLUSHER_CLEANER_NUM_LEAF_MERGES_RUNNING,// number of cleaner thread leaf merges in progress
FT_FLUSHER_CLEANER_NUM_LEAF_MERGES_COMPLETED,// number of times cleaner thread successfully merges a leaf
FT_FLUSHER_CLEANER_NUM_DIRTIED_FOR_LEAF_MERGE,// nodes dirtied by the "flush from root" process to merge a leaf node
FT_FLUSHER_FLUSH_TOTAL,// total number of flushes done by flusher threads or cleaner threads
FT_FLUSHER_FLUSH_IN_MEMORY,// number of in memory flushes
FT_FLUSHER_FLUSH_NEEDED_IO,// number of flushes that had to read a child (or part) off disk
FT_FLUSHER_FLUSH_CASCADES,// number of flushes that triggered another flush in the child
FT_FLUSHER_FLUSH_CASCADES_1,// number of flushes that triggered 1 cascading flush
FT_FLUSHER_FLUSH_CASCADES_2,// number of flushes that triggered 2 cascading flushes
FT_FLUSHER_FLUSH_CASCADES_3,// number of flushes that triggered 3 cascading flushes
FT_FLUSHER_FLUSH_CASCADES_4,// number of flushes that triggered 4 cascading flushes
FT_FLUSHER_FLUSH_CASCADES_5,// number of flushes that triggered 5 cascading flushes
FT_FLUSHER_FLUSH_CASCADES_GT_5,// number of flushes that triggered more than 5 cascading flushes
FT_FLUSHER_SPLIT_LEAF,// number of leaf nodes split
FT_FLUSHER_SPLIT_NONLEAF,// number of nonleaf nodes split
FT_FLUSHER_MERGE_LEAF,// number of times leaf nodes are merged
FT_FLUSHER_MERGE_NONLEAF,// number of times nonleaf nodes are merged
FT_FLUSHER_BALANCE_LEAF,// number of times a leaf node is balanced inside brt