Profile data for GET http://e2e-tests.tsumanchuk.project-h.io/portal/api/redirect-flow/order-plan/2?hash=b4b9dddbf3b5d698bd59427855b8d6d5&gateway=stripe

Compare this run View Callgraph Jump to functions

Watch Functions

Function Call Count ewt emu epmu
You have no watch functions setup. Add a watch function now.

Self Wall Time

App\Repositories\Clickhouse\CustomerActivityFactsRepository::selectDistinctCustomerIds
43,174 µs
App\Services\TargetGroups\TargetGroupsMatcher::match
4,894 µs
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAvailableForLocation
3,911 µs
main()
2,980 µs
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
2,773 µs
Illuminate\Database\MySqlConnection::{closure:Illuminate\Database\MySqlConnection::insert():42}
2,086 µs

Memory Hogs

load::settings/localization_php
95,296 bytes
Laravel\Boost\Middleware\InjectBoost::handle
36,440 bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getBaseParameters
35,832 bytes
App\Repositories\Clickhouse\CustomerActivityFactsRepository::selectDistinctCustomerIds
20,136 bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
17,048 bytes
load::settings/captive_portal_php
16,416 bytes
Function Call Count Self Wall Time Self CPU Self Memory Usage Self Peak Memory Usage Inclusive Wall Time Inclusive CPU Inclusive Memory Usage Inclusive Peak Memory Usage
App\Repositories\Clickhouse\CustomerActivityFactsRepository::sele… 1 43,174 µs 934 µs 20,136 bytes bytes 43,174 µs 934 µs 20,136 bytes bytes
App\Services\TargetGroups\TargetGroupsMatcher::match 1 4,894 µs 787 µs -52,112 bytes bytes 52,848 µs 4,750 µs 64,672 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAv… 1 3,911 µs 2,413 µs 10,264 bytes bytes 3,915 µs 2,418 µs 11,056 bytes bytes
main() 1 2,980 µs 2,209 µs -36,440 bytes bytes 73,030 µs 18,025 µs 269,272 bytes bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderP… 1 2,773 µs 1,807 µs 17,048 bytes bytes 67,532 µs 14,122 µs 183,872 bytes bytes
Illuminate\Database\MySqlConnection::{closure:Illuminate\Database… 1 2,086 µs 689 µs 2,528 bytes bytes 2,086 µs 689 µs 2,528 bytes bytes
Laravel\Boost\Middleware\InjectBoost::handle 1 1,836 µs 1,091 µs 36,440 bytes bytes 70,037 µs 15,800 µs 300,640 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::__construct 3 1,154 µs 377 µs 8,424 bytes bytes 4,361 µs 2,608 µs 70,272 bytes bytes
App\Repositories\Tenant\Plans\PlansRepository::getPlansForFilter 3 938 µs 691 µs 2,320 bytes bytes 1,112 µs 876 µs 18,480 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 883 µs 514 µs 3,808 bytes bytes 914 µs 528 µs 5,232 bytes bytes
App\Services\RedirectFlow\Adverts\CampaignDetector::detect 1 734 µs 271 µs -20,024 bytes bytes 53,685 µs 5,120 µs 58,968 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAddit… 3 731 µs 449 µs 6,984 bytes bytes 731 µs 449 µs 6,984 bytes bytes
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabel… 3 723 µs 472 µs 3,400 bytes bytes 723 µs 472 µs 3,400 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::getTemporar… 1 695 µs 363 µs 2,344 bytes bytes 704 µs 372 µs 3,104 bytes bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 651 µs 609 µs -6,192 bytes bytes 719 µs 677 µs 2,040 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getBaseP… 3 617 µs 414 µs 35,832 bytes bytes 2,452 µs 1,762 µs 57,712 bytes bytes
App\Models\Tenant\Log\StatusedLog::finish 1 601 µs 700 µs 3,272 bytes bytes 601 µs 700 µs 3,272 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 496 µs 297 µs -27,368 bytes bytes 602 µs 404 µs 5,120 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 323 µs 238 µs 5,168 bytes bytes 4,714 µs 2,608 µs 49,000 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 303 µs 246 µs 2,384 bytes bytes 314 µs 259 µs 4,296 bytes bytes
load::settings/localization_php 3 253 µs 254 µs 95,296 bytes bytes 253 µs 254 µs 95,296 bytes bytes
Illuminate\Redis\RedisManager::__call 2 235 µs 149 µs 1,200 bytes bytes 235 µs 149 µs 1,200 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 147 µs 145 µs 2,880 bytes bytes 2,481 µs 1,099 µs 25,608 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::build 3 143 µs 144 µs 14,440 bytes bytes 43,560 µs 1,319 µs 40,992 bytes bytes
App\Repositories\Tenant\Plans\PlansRepository::{closure:App\Repos… 27 137 µs 143 µs 11,520 bytes bytes 137 µs 143 µs 11,520 bytes bytes
load::settings/captive_portal_php 2 107 µs 108 µs 16,416 bytes bytes 107 µs 108 µs 16,416 bytes bytes
Spatie\Activitylog\PendingActivityLog::__construct 1 102 µs 100 µs 4,560 bytes bytes 108 µs 108 µs 7,048 bytes bytes
App\Services\RedirectFlow\RedirectFlowLogger::startLog 1 77 µs 77 µs 2,312 bytes bytes 249 µs 250 µs 14,320 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::handle 1 71 µs 70 µs -11,360 bytes bytes 67,903 µs 14,406 µs 177,872 bytes bytes
Illuminate\Database\Eloquent\Model::save 1 61 µs 59 µs 112 bytes bytes 2,318 µs 937 µs 18,552 bytes bytes
Illuminate\Database\Eloquent\Builder::orWhere 4 56 µs 55 µs 7,480 bytes bytes 43,392 µs 1,150 µs 23,584 bytes bytes
activity 1 53 µs 52 µs 1,192 bytes bytes 166 µs 166 µs 10,040 bytes bytes
App\Services\CustomerQuery\CustomerActivityFactsConditionBuilder:… 1 52 µs 51 µs 1,864 bytes bytes 43,266 µs 1,022 µs 6,008 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 51 µs 49 µs -1,256 bytes bytes 681 µs 483 µs 8,064 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildConditio… 5 43 µs 46 µs 4,136 bytes bytes 43,324 µs 1,083 µs 15,344 bytes bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 43 µs 43 µs 728 bytes bytes 43 µs 43 µs 728 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::getKey 2 40 µs 42 µs 1,328 bytes bytes 40 µs 42 µs 1,328 bytes bytes
App\Repositories\Clickhouse\CustomerActivityFactsRepository::getC… 1 38 µs 34 µs -16,904 bytes bytes 43,212 µs 968 µs 3,232 bytes bytes
load::settings/customers_php 1 31 µs 32 µs 5,048 bytes bytes 31 µs 32 µs 5,048 bytes bytes
Symfony\Component\HttpFoundation\RedirectResponse::__construct 1 31 µs 30 µs 2,720 bytes bytes 42 µs 42 µs 12,768 bytes bytes
App\Services\PaymentGateways\GlobalGateway::createEncrypter 1 30 µs 13 µs 792 bytes bytes 31 µs 14 µs 1,424 bytes bytes
Illuminate\Database\Eloquent\Model::updateTimestamps 1 27 µs 25 µs 728 bytes bytes 57 µs 57 µs 4,584 bytes bytes
load::settings/finance_php 1 25 µs 25 µs 7,064 bytes bytes 25 µs 25 µs 7,064 bytes bytes
load::settings/status_page_notifications_php 1 25 µs 25 µs 5,872 bytes bytes 25 µs 25 µs 5,872 bytes bytes
App\Services\RedirectFlow\Adverts\CampaignDetector::detectTargetG… 1 23 µs 19 µs -17,440 bytes bytes 52,871 µs 4,769 µs 47,232 bytes bytes
load::settings/security_php 1 20 µs 20 µs 7,216 bytes bytes 20 µs 20 µs 7,216 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsert 1 20 µs 36 µs 1,344 bytes bytes 22 µs 39 µs 2,096 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::{closure:Illuminate\D… 4 19 µs 22 µs 864 bytes bytes 19 µs 22 µs 864 bytes bytes
load::settings/finance_notifications_php 1 18 µs 18 µs 4,488 bytes bytes 18 µs 18 µs 4,488 bytes bytes
Illuminate\Database\MySqlConnection::insert 1 18 µs 17 µs -1,008 bytes bytes 2,104 µs 706 µs 1,520 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 18 µs 18 µs 696 bytes bytes 18 µs 18 µs 696 bytes bytes
load::settings/splynx_integration_php 1 17 µs 18 µs 6,232 bytes bytes 17 µs 18 µs 6,232 bytes bytes
load::settings/voucher_limit_notifications_php 1 17 µs 17 µs 6,056 bytes bytes 17 µs 17 µs 6,056 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAllPa… 3 16 µs 14 µs -3,576 bytes bytes 3,199 µs 2,225 µs 61,120 bytes bytes
Illuminate\Database\Eloquent\Model::performInsert 1 16 µs 13 µs 136 bytes bytes 2,243 µs 861 µs 15,888 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::tryToAcquireLock 1 15 µs 12 µs 824 bytes bytes 133 µs 74 µs 2,736 bytes bytes
App\Services\RedirectFlow\Adverts\Adverts::isWeNeedToShowAd 1 15 µs 13 µs -136 bytes bytes 53,700 µs 5,133 µs 58,832 bytes bytes
Illuminate\Database\Eloquent\Model::insertAndSetId 1 15 µs 14 µs 1,360 bytes bytes 2,162 µs 781 µs 8,224 bytes bytes
load::settings/portal_php 1 14 µs 15 µs 3,824 bytes bytes 14 µs 15 µs 3,824 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::{closure:App\… 3 14 µs 13 µs -2,216 bytes bytes 43,410 µs 1,168 µs 25,104 bytes bytes
Illuminate\Database\Eloquent\Model::setUpdatedAt 1 14 µs 15 µs 856 bytes bytes 14 µs 15 µs 856 bytes bytes
redirect 1 14 µs 15 µs 696 bytes bytes 74 µs 74 µs 18,528 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileOrdersToArray 4 13 µs 11 µs 1,560 bytes bytes 32 µs 33 µs 2,424 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::initializeSoftDeletes… 5 12 µs 10 µs 696 bytes bytes 19 µs 19 µs 1,328 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::{closure:App\… 4 12 µs 12 µs 760 bytes bytes 43,336 µs 1,095 µs 16,104 bytes bytes
App\Dto\BaseData::toJson 7 12 µs 13 µs -1,536 bytes bytes 18 µs 22 µs 2,024 bytes bytes
Illuminate\Routing\UrlGenerator::to 2 12 µs 10 µs 2,136 bytes bytes 22 µs 21 µs 4,472 bytes bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 7 11 µs 12 µs 2,560 bytes bytes 29 µs 34 µs 4,584 bytes bytes
Symfony\Component\HttpFoundation\RedirectResponse::setTargetUrl 1 10 µs 10 µs 9,416 bytes bytes 10 µs 10 µs 9,416 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileOrders 4 µs 11 µs 496 bytes bytes 41 µs 44 µs 2,920 bytes bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::whereLike 2 µs 11 µs 1,496 bytes bytes µs 11 µs 1,496 bytes bytes
App\Models\Tenant\Voucher::getQualifiedDeletedAtColumn 2 µs µs 760 bytes bytes µs µs 760 bytes bytes
Illuminate\Database\Query\Builder::insertGetId 1 µs 10 µs 944 bytes bytes 2,147 µs 767 µs 6,864 bytes bytes
Illuminate\Routing\UrlGenerator::isValidUrl 2 µs µs 584 bytes bytes µs µs 584 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::unlock 1 µs 10 µs 744 bytes bytes 167 µs 140 µs 2,624 bytes bytes
App\Repositories\Tenant\TargetGroups\TargetGroupRepository::getAv… 3 µs µs 728 bytes bytes 3,207 µs 2,231 µs 61,848 bytes bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 µs µs 832 bytes bytes 16 µs 17 µs 4,176 bytes bytes
Illuminate\Database\Eloquent\Model::setCreatedAt 1 µs µs 856 bytes bytes µs µs 856 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::getDeletedAtColumn 11 µs 10 µs 1,296 bytes bytes µs 10 µs 1,296 bytes bytes
Illuminate\Database\Query\Builder::orderBy 4 µs 11 µs 3,632 bytes bytes µs 11 µs 3,632 bytes bytes
Illuminate\Database\Query\Builder::selectRaw 3 µs µs 1,448 bytes bytes µs µs 1,448 bytes bytes
App\Services\RedirectFlow\LocationDetector::detect 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Laravel\Boost\Middleware\InjectBoost::shouldInject 1 µs µs 600 bytes bytes µs µs 600 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
App\Dto\BaseData::toArray 7 µs µs 3,560 bytes bytes µs µs 3,560 bytes bytes
Illuminate\Database\Query\Processors\MySqlProcessor::processInser… 1 µs µs 760 bytes bytes 2,111 µs 712 µs 2,912 bytes bytes
Xhgui\Profiler\Profiler::disable 1 µs µs 776 bytes bytes µs 10 µs 1,944 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::getQualifiedDeletedAt… 1 µs µs 2,032 bytes bytes µs µs 2,696 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::checkIfPlan… 1 µs µs 728 bytes bytes 709 µs 377 µs 3,832 bytes bytes
Illuminate\Database\Eloquent\Model::getAttributesForInsert 1 µs µs 640 bytes bytes µs µs 2,344 bytes bytes
url 1 µs µs -368 bytes bytes 24 µs 24 µs 3,536 bytes bytes
Illuminate\Routing\Redirector::{closure:Illuminate\Routing\Redire… 1 µs µs 856 bytes bytes µs µs 2,848 bytes bytes
Illuminate\Auth\SessionGuard::recaller 1 µs µs 584 bytes bytes µs µs 1,248 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildOrWhereG… 4 µs µs 3,736 bytes bytes µs µs 3,736 bytes bytes
Illuminate\Database\Query\Builder::whereLike 2 µs µs 2,512 bytes bytes µs µs 2,512 bytes bytes
App\Services\CustomerQuery\CustomerActivityFactsConditionBuilder:… 1 µs µs 728 bytes bytes 43,270 µs 1,026 µs 6,736 bytes bytes
App\Dto\BaseData::__construct 1 µs µs 632 bytes bytes µs µs 1,184 bytes bytes
Illuminate\Http\Request::query 1 µs µs 600 bytes bytes µs µs 600 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::{closure:Ap… 3 µs µs 792 bytes bytes µs µs 792 bytes bytes
App\Models\Tenant\Log\StatusedLog::success 1 µs µs bytes bytes 605 µs 703 µs 3,272 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 µs µs 696 bytes bytes 10 µs 10 µs 1,360 bytes bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 7 µs µs 5,160 bytes bytes µs µs 5,160 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
Illuminate\Routing\Redirector::createRedirect 1 µs µs 968 bytes bytes 53 µs 53 µs 16,584 bytes bytes
Illuminate\Routing\Redirector::to 1 µs µs 680 bytes bytes 60 µs 59 µs 17,832 bytes bytes
Spatie\Activitylog\PendingActivityLog::forwardCallTo 1 µs µs 600 bytes bytes µs µs 600 bytes bytes
App\Models\Tenant\Log\StatusedLog::__construct 1 µs µs 608 bytes bytes 169 µs 169 µs 10,648 bytes bytes
App\Models\Tenant\Log\StatusedLog::start 1 µs µs 760 bytes bytes 172 µs 172 µs 11,408 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::isAf 3 µs µs 632 bytes bytes µs µs 632 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::isCustomerLab… 3 µs µs 664 bytes bytes µs µs 664 bytes bytes
App\Dto\BaseData::fromArray 1 µs µs 744 bytes bytes µs µs 1,928 bytes bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::compileInsert 1 µs µs 216 bytes bytes 25 µs 44 µs 2,312 bytes bytes
Xhgui\Profiler\Profiler::registerShutdownHandler 1 µs µs 2,496 bytes bytes µs µs 2,496 bytes bytes
Illuminate\Routing\UrlGenerator::{closure:Stancl\Tenancy\Bootstra… 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Spatie\Activitylog\PendingActivityLog::__call 1 µs µs 632 bytes bytes µs µs 1,232 bytes bytes
App\Services\CustomerQuery\CustomerActivityFactsConditionBuilder:… 1 µs µs 912 bytes bytes µs µs 912 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::{closure:Illuminate\D… 1 µs µs 752 bytes bytes µs µs 752 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsertGetId 1 µs µs 696 bytes bytes 27 µs 45 µs 3,008 bytes bytes
App\Services\RedirectFlow\Redirect::redirect 1 µs µs 696 bytes bytes 76 µs 77 µs 19,224 bytes bytes
Xhgui\Profiler\ProfilingData::__construct 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Support\Facades\Redis::getFacadeAccessor 2 µs µs 1,264 bytes bytes µs µs 1,264 bytes bytes
Spatie\Activitylog\ActivityLogger::setLogStatus 1 µs µs 1,240 bytes bytes µs µs 1,240 bytes bytes
Illuminate\Auth\SessionGuard::getRecallerName 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
App\Services\CustomerQuery\CustomerActivityFactsConditionBuilder:… 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
App\Dto\BaseData::fill 1 µs µs 552 bytes bytes µs µs 552 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::__construct 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Database\MySqlConnection::getLastInsertId 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
App\Services\PaymentGateways\GlobalGateway::getEncryptionKey 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Routing\UrlGenerator::extractQueryString 1 µs µs 1,752 bytes bytes µs µs 1,752 bytes bytes
Symfony\Component\HttpFoundation\Response::isRedirect 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Routing\UrlGenerator::getRequest 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
Illuminate\Http\RedirectResponse::setRequest 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
Xhgui\Profiler\Profilers\XHProf::disable 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Spatie\Activitylog\PendingActivityLog::logger 1 µs µs 568 bytes bytes µs µs 568 bytes bytes
App\Models\Tenant\Log\StatusedLog::activity 1 µs µs 600 bytes bytes µs µs 600 bytes bytes
Illuminate\Database\Eloquent\Model::usesUniqueIds 1 µs µs 600 bytes bytes µs µs 600 bytes bytes
Illuminate\Http\RedirectResponse::setSession 1 µs µs 664 bytes bytes µs µs 664 bytes bytes