Troubleshooting

Why am I getting a permission denied error?

To capture profile data, your Google Cloud project must have the Profiler API enabled and you must have a role that allows you to modify the project.

If the Profiler API isn't enabled, a message similar to the following is displayed:

        failed to create a profile, will retry: rpc error: code = PermissionDenied
        desc = Stackdriver Profiler API has not been used in project 012345 before or it is disabled.

To resolve this situation, enable the API. For instructions, see the instructions in Before you begin.

If you don't have the permission to write profiling data, a message similar to the following is displayed:

        failed to create a profile, will retry: rpc error: code = PermissionDenied
        desc = The caller does not have permission.

To resolve this situation, ask your administrator to grant you additional permissions. For a detailed list of the required permissions and roles, see Access control.

Why don't I have any profiles?

If you aren't running on Google Cloud, you must create a service account and link the Profiler agent to your Google Cloud project. For more information, go to Profiling outside of Google Cloud.

If you are running on Google Cloud and deploying a container on Compute Engine, you need to specify your Google Cloud project ID in the Profiler agent start command. For instructions, go to Linking the agent to a Google Cloud project.

I clicked a frame and my graph changed. What do I do now?

If you click a frame, the flame graph is redrawn and changes how the graph is displayed. Clicking a frame doesn't change any settings:

I clicked Now and my graph changed. What happened?

When you click Now a new range of time is defined. Your graph might change because Profiler identifies all of the available profiles that meet the new range of time and randomly selects 250 for analysis.

For more information, go to Range of time.

What is the difference between focus, show from frame, and show stacks filters?

For a discussion and an example of these three features, go to Focused graph explained.

What is the difference between total and self?

In the context of profiling, total and self identify what functions contribute to the metric value. For example, the total CPU time of a function is the CPU time used by the function and includes the CPU time used by its children. In contrast, the self CPU time of a function excludes the contribution of the function's children.

Оцените, насколько информация на этой странице была вам полезна:

Оставить отзыв о...

Текущей странице
Stackdriver Profiler