chassis / xhprof Goto Github PK
View Code? Open in Web Editor NEWA Chassis extension that installs XHProf
A Chassis extension that installs XHProf
We should add the ability to remove this extension.
Currently there's a rule to auto prepend xhgui's header file but it doesn't exist in this repo. Maybe just needs adding as a submodule.
I don't think Php 7.1+ is supported yet but we should get this working with the other versions.
We might be able to use pecl to install this instead. Something like what JoHo has done on the HM AWS stack might work but using Puppet instead. e.g.
curl -L https://github.com/humanmade/xhprof/archive/sampling-interval.zip > /tmp/xhprof.zip && unzip -o /tmp/xhprof.zip -d /tmp && cd /tmp/xhprof-sampling-interval/extension && phpize && ./configure && make && make install && echo "extension=xhprof.so" > /etc/php/7.0/fpm/conf.d/20-xhprof.ini && echo "extension=xhprof.so" > /etc/php/7.0/cli/conf.d/20-xhprof.ini
Currently when you provision this is happening each time:
/Stage[main]/Xhprof/Exec[move module]/returns: executed successfully
We can add an unless
test to stop this occurring if the file exists.
What operating system do you use?
Arch Linux
What version of Vagrant are you running?
2.2.6
Are you using VirtualBox or VMWare and which version are you using?
VirtualBox 6.0.14 r132055
Do you have a custom YAML file? If so, what does it contain?
php: '7.2'
paths:
base: ..
wp: wordpress
content: content
multisite: true
extensions:
- humanmade/platform_chassis_extension
elasticsearch:
repo_version: 6.x
version: 6.3.1
plugins: [analysis-icu, ingest-attachment]
hosts:
- myhost.local
machine_name: myhost.local
Here's the error I got when the box is provisioned for the first time:
myhost.local: Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/php/7.2/fpm/conf.d/xhprof.ini20191219-2564-ycp053.lock (file: /vagrant/extensions/xhprof/modules/xhprof/manifests/init.pp, line: 52)
myhost.local: Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/php/7.2/fpm/conf.d/xhprof.ini20191219-2564-ycp053.lock (file: /vagrant/extensions/xhprof/modules/xhprof/manifests/init.pp, line: 52)
myhost.local: Wrapped exception:
myhost.local: No such file or directory @ dir_s_mkdir - /etc/php/7.2/fpm/conf.d/xhprof.ini20191219-2564-ycp053.lock
myhost.local: Error: /Stage[main]/Xhprof/File[/etc/php/7.2/fpm/conf.d/xhprof.ini]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/php/7.2/fpm/conf.d/xhprof.ini20191219-2564-ycp053.lock (file: /vagrant/extensions/xhprof/modules/xhprof/manifests/init.pp, line: 52)
Running vagrant provision
after the box is setup fixes the issue.
The Human Made fork still works for this extension however it's not maintained. It is probably worth switching to: https://github.com/longxinH/xhprof/
This error happens when composer is installed alongside this extension.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.