spice server tools
来源:互联网 发布:淘宝网购物手机 编辑:程序博客网 时间:2024/06/05 07:56
export CFLAGS= -DRED_STATISTICS
reds_stat.c
static void print_stat_tree(int32_t node_index, int depth)
{
SpiceStatNode *node = &reds_nodes[node_index];
if ((node->flags & SPICE_STAT_NODE_MASK_SHOW) == SPICE_STAT_NODE_MASK_SHOW) {
printf("%*s%s", depth * TAB_LEN, "", node->name);
if (node->flags & SPICE_STAT_NODE_FLAG_VALUE) {
printf(":%*s%"PRIu64" (%"PRIu64")\n", (int) ((VALUE_TABS - depth) * TAB_LEN - strlen(node->name) - 1), "",
node->value, node->value - values[node_index]);
values[node_index] = node->value;
} else {
printf("\n");
if (node->first_child_index != INVALID_STAT_REF) {
print_stat_tree(node->first_child_index, depth + 1);
}
}
}
if (node->next_sibling_index != INVALID_STAT_REF) {
print_stat_tree(node->next_sibling_index, depth);
}
}
red-worker.c
red_worker_new
#ifdef RED_STATISTICS
char worker_str[20];
sprintf(worker_str, "display[%d]", worker->qxl->id);
worker->stat = stat_add_node(reds, INVALID_STAT_REF, worker_str, TRUE);
worker->wakeup_counter = stat_add_counter(reds, worker->stat, "wakeups", TRUE);
worker->command_counter = stat_add_counter(reds, worker->stat, "commands", TRUE);
#endif
stat_add_nodeStatNodeRef stat_add_node(RedsState *reds, StatNodeRef parent, const char *name, int visible)
{
return stat_file_add_node(reds->stat_file, parent, name, visible);
}
stat_file_add_node
- spice server tools
- spice server ring 机制
- spice server timer机制
- spice server watch机制
- spice server channel 注册
- spice server mjpeg
- spice client 和 spice server 通信机制
- spice client 和 spice server 通信机制
- spice client 和 spice server 通信机制
- spice server playback 语音传输
- Spice代码阅读一:Spice Client 与 Spice Server 通道建立过程
- Spice代码阅读一:Spice Client 与 Spice Server 通道建立过程
- spice
- ubuntu下安装qemu spice server
- spice server qxl worker 及memslot
- spice server qxl red_dispatcher_init 初始化代码
- spice server qxl red_worker_main()代码分析
- spice server qxl red_worker_main()代码分析
- redis主从复制
- 概要设计与详细设计的区别
- 初学编程
- React中父子组件间的通信问题
- 湖南鸟巢专利孵化
- spice server tools
- Linux内核阅读笔记
- Android 增强版百分比布局库 为了适配而扩展
- 得分
- 【转】Python 十六进制与浮点数互相转换
- python 面试( interview )
- 文件和目录(快速浏览)
- 和Charles同样强大的iOS免费抓包工具mitmproxy
- C++ 异常捕获 try 和 __try的区别