Skip to content

Instantly share code, notes, and snippets.

@tcnksm
Last active December 8, 2018 04:55
Show Gist options
  • Save tcnksm/465496cbf0d18d8f2f4e407abf79d533 to your computer and use it in GitHub Desktop.
Save tcnksm/465496cbf0d18d8f2f4e407abf79d533 to your computer and use it in GitHub Desktop.
Stackdriver Profiler at Mercari

Stackdriver Profiler at Mercari

We already use Stackdriver Profiler in Production at Mercari!

Usage

Just few lines of code. You can use this non-GCP platform, too. Install this after go back home, TODAY.

 import (
   ...
   "cloud.google.com/go/profiler"
   ...
 )
 ...
 func main() {
   // Profiler initialization, best done as early as possible.
   if err := profiler.Start(profiler.Config{Service: "myservice", ServiceVersion: "1.0.0"}); err != nil {
     // TODO: Handle error.
   }
   ...
 }
@tcnksm
Copy link
Author

tcnksm commented Apr 15, 2018

Example of Stack driver Profiler in Mercairi

screen shot 2018-04-15 at 15 19 35_censored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment