Skip to content
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

update reademe #26

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,45 @@ This could be found in PHP/pinpoint_php_example/app/index.php.
require_once __DIR__."/../vendor/autoload.php";

// A writable path for caching AOP code
define('AOP_CACHE_DIR',__DIR__.'/Cache/');
define('AOP_CACHE_DIR',__DIR__.'/../Cache/');
// Your plugins directory: All plugins must have a suffix "Plugin.php",as "CommonPlugin.php mysqlPlugin.php RPCPlugin.php"
define('PLUGINS_DIR',__DIR__.'/../Plugins/');
// since 0.2.3 supports user filter when loadering a class.
define('USER_DEFINED_CLASS_MAP_IMPLEMENT','\Plugins\ClassMapInFile.php');
// since 0.2.5+ PINPOINT_USE_CACHE = N, auto_pinpointed.php will generate Cache/* on every request.
define('PINPOINT_USE_CACHE','no');
define('PINPOINT_USE_CACHE','YES');
// Use pinpoint-php-aop auto_pinpointed.php instead of vendor/autoload.php
require_once __DIR__. '/../vendor/pinpoint-apm/pinpoint-php-aop/auto_pinpointed.php';

```
#### How to use setting.ini
#### setting.ini

Namespace conversion table for special class/function

> How to use?

[setting.ini](lib/Pinpoint/test/setting.ini)


> Read the setting.ini comments


### How it works

pinpoint-php-aop wrappers your class with an onBefore/onEnd/onException suite.
* Use `nikic/PHP-Parser` generating glue layer code

* Use namespace replace to reuse plugins or hook build-in class/function
* Intercept php classloader to redirect origin class bettween proxied class


> pinpoint-php-aop wrappers your class with an onBefore/onEnd/onException suite.

#### Data Chart Map

![how it works](https://raw.githubusercontent.com/pinpoint-apm/pinpoint-c-agent/master/images/principle_v0.2.x.png)

More details please go to lib/pinpoint/test/Comparison/pinpoint/test

> If you found a bug, please create an issue to us without any hesitate.

> If it could help you, please give us a star as a support! Thanks!
> PS: If you found a bug, please create an issue to us without any hesitate.


## Copyright

Expand Down