-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiler stuck on processing #591
Comments
Hey, can you please send me the output of This will contain various details about your app, please make sure you are not sharing something you are not comfortable with. |
Sure, I've sent you a mail with two files actually, hope it will help |
Hey @TKrisee , I had a similar issue today. I was using Sail and only had to add these to the .env:
I dont know if its because of how Clockwork reads the profiler output, but this is why it works: underground-works/clockwork-app#109 (comment) |
I know this issue is old but there's a lack of info regarding the "Performance -> Profiler" tab in Clockwork to work with Docker so let me give my two .cents of contribution First of all, no, if you use Docker the Clockwork plugin won't magically access the files within, you'll need to create a volume outside the container and do a little of configuration, at the end is simple, steps bellow: Xdebug ini config (explanation first)
So the xdebug.ini file will look like this: xdebug.mode = profile
xdebug.start_with_request = trigger
xdebug.output_dir = /cache
xdebug.profiler_append = 1 Docker Compose Your 'volumes' config in you 'docker-compose.yml' file will look something like this: volumes:
- '.:/var/www/html'
- './docker/xdebug.ini:/etc/php/8.1/cli/conf.d/xdebug.ini'
- './cache:/cache' Also Xdebug automatically send a Http Header with the location of the profile file called 'X-Xdebug-Profile-Filename', and of course it uses the 'output_dir' config. It will look something like this:
Which will point to your machine's root not the project root which usually doesn't have a /cache directory (change to a different name if it does), then you'll need to create a symlink from your projects cache dir to that dir, it will look something like this: sudo ln -s /home/<your user>/your/project/directory/cache /cache That's all, remember to click in the Enable Profile button in the "Profiler" tab and you are good to go. As a final advice, remember deleting your cachegrind.out file as it gets bigger pretty fast (each refresh on page) and it starts lagging the Clockwork extension when you open the Profiler tab |
I don't think you want to use |
I'm trying to get clockwork to work with the xdebug profiler within sail (laravel docker) to no avail.
The related php.ini config
I've checked the previous issues regarding this topic and I disabled the compressions in the xdebug config, but it did not change anything.
The filename is present in the response header and also exists on the filesystem, but for some reason, clockwork is stuck on "Processing profile..."
Am I missing something here?
The text was updated successfully, but these errors were encountered: