192
197
static int process_options(void);
193
198
static uint32_t opt_drizzle_port= 0;
201
UPDATE_TYPE_REQUIRES_PREFIX= 3,
202
CREATE_TABLE_TYPE= 4,
203
SELECT_TYPE_REQUIRES_PREFIX= 5,
204
DELETE_TYPE_REQUIRES_PREFIX= 6
212
Statement(char *in_string,
214
slap_query_t in_type,
215
Statement *in_next) :
235
char *getString() const
240
size_t getLength() const
245
slap_query_t getType() const
250
Statement *getNext() const
255
void setString(char *in_string)
260
void setString(size_t length_arg)
262
string= (char *)calloc(length_arg + 1, sizeof(char));
266
void setString(size_t in_length, char in_char)
268
string[in_length]= in_char;
271
void setLength(size_t in_length)
276
void setType(slap_query_t in_type)
281
void setNext(Statement *in_next)
298
OptionString(char *in_string,
301
size_t in_option_length,
302
OptionString *in_next) :
306
option_length(in_option_length),
326
char *getString() const
331
size_t getLength() const
336
char *getOption() const
341
size_t getOptionLength() const
343
return option_length;
346
OptionString *getNext() const
351
void setString(char *in_string)
354
length= strlen(in_string);
357
void setOption(char *in_option)
359
option= strdup(in_option);
360
option_length= strlen(in_option);
363
void setNext(OptionString *in_next)
372
size_t option_length;
381
Stats(long int in_timing,
383
uint32_t in_real_users,
385
long int in_create_timing,
386
uint64_t in_create_count) :
389
real_users(in_real_users),
391
create_timing(in_create_timing),
392
create_count(in_create_count)
404
long int getTiming() const
409
uint32_t getUsers() const
414
uint32_t getRealUsers() const
419
uint64_t getRows() const
424
long int getCreateTiming() const
426
return create_timing;
429
uint64_t getCreateCount() const
434
void setTiming(long int in_timing)
439
void setUsers(uint32_t in_users)
444
void setRealUsers(uint32_t in_real_users)
446
real_users= in_real_users;
449
void setRows(uint64_t in_rows)
454
void setCreateTiming(long int in_create_timing)
456
create_timing= in_create_timing;
459
void setCreateCount(uint64_t in_create_count)
461
create_count= in_create_count;
469
long int create_timing;
470
uint64_t create_count;
478
ThreadContext(Statement *in_stmt,
489
Statement *getStmt() const
494
uint64_t getLimit() const
499
void setStmt(Statement *in_stmt)
504
void setLimit(uint64_t in_limit)
520
Conclusions(char *in_engine,
521
long int in_avg_timing,
522
long int in_max_timing,
523
long int in_min_timing,
525
uint32_t in_real_users,
526
uint64_t in_avg_rows,
527
long int in_sum_of_time,
529
long int in_create_avg_timing,
530
long int in_create_max_timing,
531
long int in_create_min_timing,
532
uint64_t in_create_count,
533
uint64_t in_max_rows,
534
uint64_t in_min_rows) :
536
avg_timing(in_avg_timing),
537
max_timing(in_max_timing),
538
min_timing(in_min_timing),
540
real_users(in_real_users),
541
avg_rows(in_avg_rows),
542
sum_of_time(in_sum_of_time),
544
create_avg_timing(in_create_avg_timing),
545
create_max_timing(in_create_max_timing),
546
create_min_timing(in_create_min_timing),
547
create_count(in_create_count),
548
max_rows(in_max_rows),
549
min_rows(in_min_rows)
562
create_avg_timing(0),
563
create_max_timing(0),
564
create_min_timing(0),
570
char *getEngine() const
575
long int getAvgTiming() const
580
long int getMaxTiming() const
585
long int getMinTiming() const
590
uint32_t getUsers() const
595
uint32_t getRealUsers() const
600
uint64_t getAvgRows() const
605
long int getSumOfTime() const
610
long int getStdDev() const
615
long int getCreateAvgTiming() const
617
return create_avg_timing;
620
long int getCreateMaxTiming() const
622
return create_max_timing;
625
long int getCreateMinTiming() const
627
return create_min_timing;
630
uint64_t getCreateCount() const
635
uint64_t getMinRows() const
640
uint64_t getMaxRows() const
645
void setEngine(char *in_engine)
650
void setAvgTiming(long int in_avg_timing)
652
avg_timing= in_avg_timing;
655
void setMaxTiming(long int in_max_timing)
657
max_timing= in_max_timing;
660
void setMinTiming(long int in_min_timing)
662
min_timing= in_min_timing;
665
void setUsers(uint32_t in_users)
670
void setRealUsers(uint32_t in_real_users)
672
real_users= in_real_users;
675
void setAvgRows(uint64_t in_avg_rows)
677
avg_rows= in_avg_rows;
680
void setSumOfTime(long int in_sum_of_time)
682
sum_of_time= in_sum_of_time;
685
void setStdDev(long int in_std_dev)
690
void setCreateAvgTiming(long int in_create_avg_timing)
692
create_avg_timing= in_create_avg_timing;
695
void setCreateMaxTiming(long int in_create_max_timing)
697
create_max_timing= in_create_max_timing;
700
void setCreateMinTiming(long int in_create_min_timing)
702
create_min_timing= in_create_min_timing;
705
void setCreateCount(uint64_t in_create_count)
707
create_count= in_create_count;
710
void setMinRows(uint64_t in_min_rows)
712
min_rows= in_min_rows;
715
void setMaxRows(uint64_t in_max_rows)
717
max_rows= in_max_rows;
728
long int sum_of_time;
730
/* These are just for create time stats */
731
long int create_avg_timing;
732
long int create_max_timing;
733
long int create_min_timing;
734
uint64_t create_count;
735
/* The following are not used yet */
741
200
static OptionString *engine_options= NULL;
742
201
static OptionString *query_options= NULL;
743
202
static Statement *pre_statements= NULL;