Skip to content
Weihao's Blog

Weihao's Blog

Weihao Bi

  • Home
  • About
  • Blog
    • Essay
    • Tech post
    • little poem
    • Other trivial
    • Uncategorized
  • Contact

Category: Uncategorized

bookmark_borderDebug MongoDB with Golang mongo-dirve

Posted on April 21, 2022 by Bi Weihao
cmdMonitor := &event.CommandMonitor{
		Started: func(_ context.Context, evt *event.CommandStartedEvent) {
			log.Printf("Command started: %v\n", evt.Command)
		},
	}

	option := options.Client().ApplyURI(connectionURI).SetMonitor(cmdMonitor)
Posted in UncategorizedLeave a Comment on Debug MongoDB with Golang mongo-dirve

bookmark_borderGo Profile with pprof

Posted on April 15, 2022April 15, 2022 by Bi Weihao

Basic command line

go tool pprof {name of profile}

go tool pprof -http=:8092 profile
Posted in UncategorizedLeave a Comment on Go Profile with pprof

Find Me Here

LinkedIn

Github

Weibo

Recent Posts

  • Caltrain的终点站是下元
  • Debug MongoDB with Golang mongo-dirve
  • Go Profile with pprof
  • 嘿!妈妈
  • 随笔
keyboard_arrow_up
Theme: Noto Simple