AWS::CodeGuruProfiler Construct Library
---AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.
For more information on how to migrate, see the Migrating to AWS CDK v2 guide.
Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance.
Installation
Import to your project:
import aws_cdk.aws_codeguruprofiler as codeguruprofiler
Basic usage
Here's how to setup a profiling group and give your compute role permissions to publish to the profiling group to the profiling agent can publish profiling information:
# The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)
publish_app_role = iam.Role(self, "PublishAppRole",
assumed_by=iam.AccountRootPrincipal()
)
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup")
profiling_group.grant_publish(publish_app_role)
Compute Platform configuration
Code Guru Profiler supports multiple compute environments.
They can be configured when creating a Profiling Group by using the computePlatform property:
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup",
compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA
)
Metadata
Release files for aws-cdk.aws-codeguruprofiler 1.204.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz | 50.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.7 kB
Release files / aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz
| Download URL | aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz |
|---|---|
| Size | 50.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1f478472cba135a98082ff96e9668dd742c715ebee1330824b98f0b04c24251
|
|
BLAKE2b-256 checksum How to use checksums |
0c897de3532743b90aa916f1730af802ab9f2a076ce601201cac621b3e03f341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl
| Download URL | aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl |
|---|---|
| Size | 49.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
545e1e1c4a81b3a1d3b11d88d42e2ff58e478fd2615c88720d745675da624c67
|
|
BLAKE2b-256 checksum How to use checksums |
94df1fb7949e2e88826235ebd5d9cad9c5d5f50cec1ba28316e92fe4767bec44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|