123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- declare(strict_types=1);
- namespace OCP\Profiler;
- use OC\AppFramework\Http\Request;
- use OCP\AppFramework\Http\Response;
- use OCP\DataCollector\IDataCollector;
- interface IProfiler {
-
- public function add(IDataCollector $dataCollector): void;
-
- public function loadProfileFromResponse(Response $response): ?IProfile;
-
- public function loadProfile(string $token): ?IProfile;
-
- public function saveProfile(IProfile $profile): bool;
-
- public function find(?string $url, ?int $limit, ?string $method, ?int $start, ?int $end, ?string $statusCode = null): array;
-
- public function dataProviders(): array;
-
- public function isEnabled(): bool;
-
- public function setEnabled(bool $enabled): void;
-
- public function collect(Request $request, Response $response): IProfile;
-
- public function clear(): void;
- }
|