Sample Sparta application showing how to use pprof to profile AWS Lambda code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Sparta-based application that demonstrates how to add pprof support to your lambda application.

See the profiling documentation for complete details.

Sparta Target

make spartaPProf

The Sparta target performs snapshoting and posting to S3. These snapshots are then visualized via the profile option of your application.

Google Target

make googlePProf

This target uses the Google Stackdriver profiler to send snapshots of your lambda functions to Stackdriver for visualization. It also creates a Lambda function that subscribes to the logs of the primary load generation function (helloWorld). The subscription is mediated by a Kinesis stream and the records are delivered to StackDriver logs.

See Centralised logging for AWS Lambda for other options for centralizing your lambda function logs.