01 2023 档案
摘要:转自:https://blog.csdn.net/wodeni512517/article/details/71123469 1.介绍 十六进制: typedef enum { ACTION_SHOWCARDS = 0x01, //1 ACTION_FOLLOW = 0x02, //2 ACTION
阅读全文
摘要:转自:https://blog.csdn.net/10km/article/details/83820080 1.profiler输出 大字体显示的节点就是CPU使用率的’热点’。上述为SVG模式,可伸缩向量图形(Scalable Vector Graphics)。 图形风格的性能报告由节点和有向边
阅读全文
摘要:转自:http://c.biancheng.net/redis/hashes.html 1.介绍 Redis hash(哈希散列)是由字符类型的 field(字段)和 value 组成的哈希映射表结构(也称散列表),它非常类似于表格结构。在 hash 类型中,field 与 value 一一对应,且
阅读全文
摘要:转自:https://cloud.tencent.com/developer/article/1784548 1.介绍 一般我们的接口操作包括两方面:1计算(主要消耗cpu),2等待IO(对于我们的应用来说就是请求缓存 请求其他协议、请求数据库等)。我们的服务一般也分为CPU密集型(一般是后台脚本类
阅读全文
摘要:转自:https://blog.csdn.net/DLUTBruceZhang/article/details/9822235 1.例子 int main(){ string s="abc"; cout<<sizeof(s)<<"\n"; cout<<sizeof(string)<<"\n"; ve
阅读全文
摘要:转自:https://zhuanlan.zhihu.com/p/470315089 1.介绍 通过以下命令: cat /proc/pid/status 即可查看所占用内存情况,C++中通过getpid()函数即可打印进程的pid,类型为pid_t, VSZ:Virtual Memory Size(虚
阅读全文
摘要:转自:https://www.jianshu.com/p/0821801170dd,https://zhuanlan.zhihu.com/p/357115847 1.什么是优雅退出 退出一个线程的时候,要保证它使用的资源被释放掉,不能直接stop,否则可能导致未定义的行为,那么如何保证线程退出前所占
阅读全文