Skip to content

ErrorException: Undefined array key "cpu" in /app/app/modules/Profiler/Application/Handlers/CalculateDiffsBetweenEdges.php at line 23 [] [] #259

@mxr576

Description

@mxr576

I was tested Buggregator's profiler via XHPROF. I use DDEV as local dev environment and I took more some time figuring out why I also get back HTTP 500 from Buggregator for a profiling request by following the Vanilla PHP instructions.

This is what I managed to extract from the Buggregator Docker container as issue:

2024-10-14T09:53:35+0000        ERROR   app             ErrorException: Undefined array key "cpu" in /app/app/modules/Profiler/Application/Handlers/CalculateDiffsBetweenEdges.php at line 23 [] []`

and it seems the root cause is that in DDEV CPU profiling got disabled by default for a long time (see ddev/ddev@5efc9c1#diff-3ae14f06b135abe5b6ad9e0d247f73280b0a6e83ad5346e5db5a515931ea5f69L23) which probably also means the Buggregator should be prepared for handling missing CPU usage info as well.

Restoring CPU profiling in DDEV's XHPROF config fixed profile data push to Buggregator.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions