Skip to content

Collects information about your code at runtime: What functions were called and with what parameters? This can be analysed and processed later.

License

Notifications You must be signed in to change notification settings

codenamephp/looksy

Repository files navigation

looksy

Packagist Version Packagist PHP Version Support Lines of code GitHub code size in bytes CI Packagist Downloads GitHub

Installation

Easiest way is via composer. Just run composer require codenamephp/looksy in your cli which should install the latest version for you.

Usage

XDebug

Example:

<?php declare(strict_types=1);

use de\codenamephp\looksy\rawData\persistance\Folder;
use de\codenamephp\looksy\rawData\xdebug\Collector;

require_once __DIR__ . '/vendor/autoload.php';

$collector = new Collector();
$collector->start();

function some_test(string $foo) {
  echo $foo;
}

some_test('bar');

$rawData = $collector->stop();

$persistence = new Folder(__DIR__ . '/data');
$persistence->save($rawData);

Result:

File in ./data with filename generated by XDebug:

Version: 3.0.2
File format: 4
TRACE START [2021-01-16 15:27:19.432521]
2	43	1	0.001118	460544
2	45	0	0.001126	460544	some_test	1		/opt/project/src/test.php	12	1	'bar'
2	45	1	0.001144	460576
2	46	0	0.001148	460576	de\codenamephp\looksy\rawData\xdebug\Collector->stop	1		/opt/project/src/test.php	14	0
3	47	0	0.001152	460576	xdebug_stop_trace	0		/opt/project/src/rawData/xdebug/Collector.php	44	0
			0.001156	460632
TRACE END   [2021-01-16 15:27:19.432593]

About

Collects information about your code at runtime: What functions were called and with what parameters? This can be analysed and processed later.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages