Skip to content

Instantly share code, notes, and snippets.

@deguif
Last active December 1, 2015 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deguif/cd0e1f4f025da0fb33e0 to your computer and use it in GitHub Desktop.
Save deguif/cd0e1f4f025da0fb33e0 to your computer and use it in GitHub Desktop.
Probe on Windows

#Cloning the repository

git clone https://github.com/blackfireio/blackfire.io.git
git checkout probe-windows-fixes

#PHP 5.6 x64

##Compilation

Initialize Compilation environment

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat x64
C:\php-sdk\bin\phpsdk_setvars.bat

Open the direction where is located the PHP source code

buildconf --add-modules-dir=C:\php-extensions\blackfire.io
configure --disable-all --enable-cli --enable-session --enable-blackfire=shared
nmake

Test build

Display the list of PHP extensions loaded

x64\Release_TS\php.exe -d extension_dir=x64\Release_TS -d extension=php_blackfire.dll -m

Set the variable environment

set BLACKFIRE_QUERY="expires=1511603200&agentIds=abcdef,gedh,fooid,request-id-blackfire-yml&profileSlot=1&userId=1&collabToken=coltok&signature=RWSiKOrVW6LZ8EoexBwMcaUb_OVDnHoTMv1uF8d0o0ZQXdBv0uENVTVZx4sRoACxS54OnReQZMHWL61g2HJxjaHIyuuU72eeVQ8=&flag_cpu=1&flag_pdo=1&flag_memory=0&flag_sessions=1&flag_nw=1&flag_fn_args=1&flag_refs=1&auto_enable=1"

Launch the fake agent

x64\Release_TS\php.exe c:\php-extensions\blackfire.io\probe\fake_agent.php

Launch a profile

x64\Release_TS\php.exe -d extension_dir=x64\Release_TS -d extension=php_blackfire.dll -d blackfire.agent_socket="tcp://127.0.0.1:8367" c:\php-extensions\test.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment