初级会员
  • 第 2078 位会员
  • wcpsoft
  • admin@wcpsoft.cn
  • 2014-12-14 01:51:00
  • Offline
  • 0

最近发布的文章

    暂无

最近分享的资源

    暂无

最近发布的项目

    暂无

最近的评论

  • 2015-03-02 06:38:27 评论了主题 关于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() } } ```
  • 2015-03-02 06:37:38 评论了主题 关于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() } }
  • 2015-03-02 02:10:56 评论了主题 关于go语言获取cpu执行情况数据分析疑问?
    已经解决
  • 这个问题已经解决,是显示map遍历顺序的问题