45 #define SINGLETON_TYPE 8
49 int firstsys,
int firstseq,
int lastsys,
int lastseq )
54 const char *index_type;
65 printf(
"%02d:%10" ZINT_FORMAT0 " %s %d.%d - %d.%d\n", ord, count, dst,
66 firstsys, firstseq, lastsys, lastseq);
84 assert (*info ==
sizeof(
ISAM_P));
85 memcpy (&isam_p, info+1,
sizeof(
ISAM_P));
99 assert (occurx == occur);
115 assert (occurx == occur);
148 firstsys, firstseq, lastsys, lastseq);
155 const char *directory = 0;
156 double used_bytes, max_bytes;
157 printf(
"Register:\n");
159 &used_bytes, &max_bytes))
161 printf (
"%s %10.0lf %10.0lf\n", directory, used_bytes, max_bytes);
167 &used_bytes, &max_bytes))
169 printf (
"%s %10.0lf %10.0lf\n", directory, used_bytes, max_bytes);
179 int after = 1000000000;
220 for (i = 0; i<20; i++)
223 for (i = 0; i<10; i++)
226 for (j = 0; j<5; j++)
237 fprintf (stdout,
" Blocks Occur Size KB Bytes/Entry\n");
245 fprintf(stdout,
" %8d %f",
246 (
int) ((1023.0 + (
double)
252 fprintf (stdout,
"\n");
258 for (i = 0; i<4; i++)
264 fprintf (stdout,
"Category %d\n", i);
265 fprintf (stdout,
"Block size %d\n", bsize);
272 for (j = 0; j<5; j++)
274 fprintf (stdout,
"Level%d %d\n", j,
276 fprintf (stdout,
"\n");
279 fprintf (stdout,
"Checksum %08lX\n", stat_info.
cksum);
283 for (i = 0; i<9; i++)
285 fprintf (stdout,
"Word pos " ZINT_FORMAT "\n", occur);
286 fprintf (stdout,
" Occurrences Words\n");
291 fprintf (stdout,
"%7d-%-7d %7d\n",
295 fprintf (stdout,
"%7d- %7d\n",
298 xmalloc_trav(
"unfreed");
struct BFiles_struct * zebra_get_bfs(ZebraHandle zh)
int bfs_register_directory_stat(BFiles bfs, int no, const char **directory, double *used_bytes, double *max_bytes)
int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory, double *used_bytes, double *max_bytes)
int dict_scan(Dict dict, char *str, int *before, int *after, void *client, int(*f)(char *name, const char *info, int pos, void *client))
dictionary scan
ZEBRA_RES zebra_end_read(ZebraHandle zh)
int zebra_term_untrans(ZebraHandle zh, const char *index_type, char *dst, const char *src)
ZEBRA_RES zebra_begin_read(ZebraHandle zh)
int zebra_register_statistics(ZebraHandle zh, int dumpdict)
static int inv_stat_handle(char *name, const char *info, int pos, void *client)
static void print_dict_item(ZebraHandle zh, const char *s, zint count, int firstsys, int firstseq, int lastsys, int lastseq)
static void show_bfs_stats(BFiles bfs)
void isamb_pp_close_x(ISAMB_PP pp, zint *size, zint *blocks)
int isamb_block_info(ISAMB isamb, int cat)
ISAMB_PP isamb_pp_open_x(ISAMB isamb, ISAM_P pos, int *level, int scope)
int isamb_pp_read(ISAMB_PP pp, void *buf)
int isamc_block_size(ISAMC is, int type)
zint isamc_pp_num(ISAMC_PP pp)
int isamc_pp_read(ISAMC_PP pp, void *buf)
void isamc_pp_close(ISAMC_PP pp)
ISAMC_PP isamc_pp_open(ISAMC is, ISAM_P pos)
zint isamc_block_used(ISAMC is, int type)
int isams_pp_num(ISAMS_PP pp)
int isams_pp_read(ISAMS_PP pp, void *buf)
void isams_pp_close(ISAMS_PP pp)
ISAMS_PP isams_pp_open(ISAMS is, ISAM_P pos)
int key_SU_decode(int *ch, const unsigned char *out)
void rec_prstat(Records p, int verbose)
struct zebra_register * reg
#define CAST_ZINT_TO_INT(x)
int zebraExplain_lookup_ord(ZebraExplainInfo zei, int ord, const char **index_type, const char **db, const char **string_index)