autopprof icon indicating copy to clipboard operation
autopprof copied to clipboard

feat: add goroutine watcher

Open jake-shin0 opened this issue 1 year ago • 0 comments

  • queryer was managed as a separate dir and its implementation was divided. (cgroup & runtime)
  • Queryer interface method to public.
  • As I was dividing queryer, I also wanted to manage profiler in dir, but I did not consider this part.
  • Since both monitor and profile are managed through the profile singleton object in pprof lib, I considered implementing it by injecting and managing a common singleton object in queryer and profiler, but did not do so.
    • The singleton object inside the pprof lib is managed as a map, making its usability convenient, but the public function it returns is a list, making its usability a bit ambiguous.
    • if creating an internal singleton object, it must be taken care of concurrency issues.
    • It is not a frequently called object, and its call frequency is determined by ticker, so pprof lib is used in both queryer and profiler.

jake-shin0 avatar Apr 24 '24 02:04 jake-shin0