Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 513 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 513 Bytes

example-service

a simple gRPC server with google cloud profiler integration

Running Server

You can run the server with

go run main.go -p $GOOGLE_CLOUD_PROJECT_ID -v $SERVICE_VERSION

Running client

Once the server is running, you can then run the client inside tools folder, since cloud profiler samples one profile every minute, you can call the client multiple times to ensure samples has functions captured, e.g.,

for i in $(seq 1 100); do go run tools/connect.go ; done