Esempio n. 1
0
void zlog_buf_profile(zlog_buf_t * a_buf, int flag)
{
	//zc_assert(a_buf,);
	zc_profile(flag, "---buf[%p][%ld-%ld][%ld][%s][%p:%ld]---",
			a_buf,
			a_buf->size_min, a_buf->size_max,
			a_buf->size_real,
			a_buf->truncate_str,
			a_buf->start, a_buf->tail - a_buf->start);
	return;
}
Esempio n. 2
0
void zlog_category_table_profile(zc_hashtable_t * categories, int flag)
{
    zc_hashtable_entry_t *a_entry;
    zlog_category_t *a_category;

    zc_assert(categories,);
    zc_profile(flag, "-category_table[%p]-", categories);
    zc_hashtable_foreach(categories, a_entry) {
        a_category = (zlog_category_t *) a_entry->value;
        zlog_category_profile(a_category, flag);
    }
Esempio n. 3
0
void zlog_thread_table_profile(zc_hashtable_t * threads, int flag)
{
	zc_hashtable_entry_t *a_entry;
	zlog_thread_t *a_thread;

	zc_assert(threads,);
	zc_profile(flag, "--thread_table[%p]--", threads);
	zc_hashtable_foreach(threads, a_entry) {
		a_thread = (zlog_thread_t *) a_entry->value;
		zlog_thread_profile(a_thread, flag);
	}
Esempio n. 4
0
File: spec.c Progetto: alex-ren/zlog
void zlog_spec_profile(zlog_spec_t * a_spec, int flag)
{
	return;
	zc_assert(a_spec,);
	zc_profile(flag, "----spec[%p][%.*s][%s][%s,%ld,%ld][%s]----",
		a_spec,
		a_spec->len, a_spec->str,
		a_spec->time_fmt,
		a_spec->print_fmt, (long)a_spec->max_width, (long)a_spec->min_width,
		a_spec->mdc_key);
	return;
}
Esempio n. 5
0
void zlog_level_list_profile(zc_arraylist_t *levels, int flag)
{
	int i;
	zlog_level_t *a_level;

	zc_assert(levels,);
	zc_profile(flag, "--level_list[%p]--", levels);
	zc_arraylist_foreach(levels, i, a_level) {
		/* skip empty slots */
		if (a_level) zlog_level_profile(a_level, flag);
	}
	return;
}