最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
评论了主题 关于go语言获取cpu执行情况数据分析疑问?代码如下: ```go var cpuProfile *os.File /*保存CPU执行信息*/ func SaveStartCpuProfile() { f, err := os.Create(fmt.Sprintf("heap_cpu_%s.prof", time.Now().Format("2015_02_26_03_04_05"))) if err != nil { log.Fatal(err) } pprof.StartCPUProfile(f) cpuProfile = f } /*保存CPU执行信息*/ func SaveEndCpuProfile() { if cpuProfile != nil { pprof.StopCPUProfile() cpuProfile.Close() } } ```
-
评论了主题 关于go语言获取cpu执行情况数据分析疑问?var cpuProfile *os.File /*保存CPU执行信息*/ func SaveStartCpuProfile() { f, err := os.Create(fmt.Sprintf("heap_cpu_%s.prof", time.Now().Format("2015_02_26_03_04_05"))) if err != nil { log.Fatal(err) } pprof.StartCPUProfile(f) cpuProfile = f } /*保存CPU执行信息*/ func SaveEndCpuProfile() { if cpuProfile != nil { pprof.StopCPUProfile() cpuProfile.Close() } }
-
评论了主题 关于go语言获取cpu执行情况数据分析疑问?已经解决
-
这个问题已经解决,是显示map遍历顺序的问题