std::vector<int> header_count;
std::list<std::string> string_buf;
+int string_buf_size = 0;
static struct timeval initial_tv = { 0, 0 };
static bool next_print_log = false;
{
header_count.pop_back();
string_buf.clear();
+ string_buf_size = 0;
log_flush();
}
while (header_count.size() > 1)
header_count.pop_back();
string_buf.clear();
+ string_buf_size = 0;
log_flush();
}
fputc(0, f);
fclose(f);
+ if (string_buf_size < 100)
+ string_buf_size++;
+ else
+ string_buf.pop_front();
string_buf.push_back(ptr);
free(ptr);
struct IdString
{
- // the global string cache
+ // the global id string cache
struct char_ptr_cmp {
bool operator()(const char *a, const char *b) {
global_free_idx_list_.push_back(idx);
}
- // The actual IdString objects just is a single int
+ // the actual IdString object is just is a single int
int index_;