Profile data for GET http://swift.powerlynx.app/portal/api/redirect-flow/order-plan/5?hash=e2688f879f39f977397b936977be397b&gateway=mpesa

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\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAvailableForLocation
28,781 µs
main()
14,174 µs
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
10,090 µs
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFieldsConfigsRepository::getAllUsableAdditionalFields
5,118 µs
App\Services\TargetGroups\TargetGroupsMatcher::match
4,194 µs
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__construct
3,913 µs

Memory Hogs

load::settings/localization_php
95,240 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\TargetGroups\{closure}@1
82,680 bytes
App\Services\TargetGroups\TargetGroupsMatcher::match
71,080 bytes
load::Resources/ConditionallyLoadsAttributes_php
63,392 bytes
load::CustomerQuery/CustomerQueryTrait_php
54,248 bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
29,400 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\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAv… 1 28,781 µs 11,000 µs 16,672 bytes bytes 28,789 µs 11,011 µs 17,368 bytes bytes
main() 1 14,174 µs 6,711 µs -11,992 bytes bytes 87,904 µs 43,437 µs 627,448 bytes bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderP… 1 10,090 µs 5,469 µs 29,400 bytes bytes 67,757 µs 34,190 µs 510,296 bytes bytes
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFields… 6 5,118 µs 2,009 µs 5,840 bytes bytes 5,118 µs 2,009 µs 5,840 bytes bytes
App\Services\TargetGroups\TargetGroupsMatcher::match 1 4,194 µs 1,679 µs 71,080 bytes bytes 15,153 µs 7,967 µs 471,360 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 3,913 µs 2,826 µs 3,840 bytes bytes 3,913 µs 2,826 µs 3,840 bytes bytes
Illuminate\Redis\RedisManager::__call 2 3,740 µs 933 µs 11,656 bytes bytes 4,631 µs 1,195 µs 12,688 bytes bytes
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabel… 3 2,665 µs 1,098 µs -25,000 bytes bytes 3,758 µs 2,196 µs 127,896 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 1,735 µs 868 µs -27,328 bytes bytes 1,893 µs 1,028 µs 5,152 bytes bytes
App\Services\RedirectFlow\Adverts\Adverts::isWeNeedToShowAd 1 1,688 µs 972 µs -114,288 bytes bytes 17,099 µs 9,196 µs 374,024 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::checkIfPlan… 1 1,096 µs 384 µs 1,904 bytes bytes 1,096 µs 384 µs 1,904 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 1,054 µs 788 µs 2,912 bytes bytes 1,054 µs 788 µs 2,912 bytes bytes
Illuminate\Redis\Connections\PhpRedisConnection::eval 2 891 µs 262 µs 1,032 bytes bytes 891 µs 262 µs 1,032 bytes bytes
Illuminate\Database\MySqlConnection::Illuminate\Database\{closure… 1 801 µs 519 µs 2,488 bytes bytes 801 µs 519 µs 2,488 bytes bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 767 µs 379 µs 1,120 bytes bytes 767 µs 379 µs 1,120 bytes bytes
load::settings/localization_php 3 400 µs 404 µs 95,240 bytes bytes 400 µs 404 µs 95,240 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 325 µs 491 µs 6,096 bytes bytes 1,945 µs 1,701 µs 35,912 bytes bytes
load::Resources/ConditionallyLoadsAttributes_php 1 320 µs 321 µs 63,392 bytes bytes 320 µs 321 µs 63,392 bytes bytes
load::CustomerQuery/CustomerQueryTrait_php 1 319 µs 321 µs 54,248 bytes bytes 319 µs 321 µs 54,248 bytes bytes
load::Payments/OrderProcessor_php 1 280 µs 600 µs 16,912 bytes bytes 280 µs 600 µs 16,912 bytes bytes
Illuminate\Database\MySqlConnection::insert 1 258 µs 123 µs -1,000 bytes bytes 1,059 µs 642 µs 1,488 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getBaseP… 3 239 µs 240 µs 15,272 bytes bytes 4,102 µs 2,542 µs 152,192 bytes bytes
load::TrialSessions/TrialSessionsMaker_php 1 205 µs 207 µs 16,432 bytes bytes 205 µs 207 µs 16,432 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 196 µs 144 µs -8,424 bytes bytes 9,458 µs 6,968 µs 63,608 bytes bytes
load::Payments/GatewayLinkGenerator_php 1 188 µs 210 µs 15,912 bytes bytes 188 µs 210 µs 15,912 bytes bytes
load::Json/JsonResource_php 1 165 µs 167 µs 26,216 bytes bytes 165 µs 167 µs 26,216 bytes bytes
load::src/ProfilingData_php 1 163 µs 164 µs 18,784 bytes bytes 163 µs 164 µs 18,784 bytes bytes
load::Middleware/RedirectFlowRouteMutex_php 1 144 µs 135 µs 9,360 bytes bytes 144 µs 135 µs 9,360 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::build 3 141 µs 140 µs 6,808 bytes bytes 418 µs 420 µs 113,552 bytes bytes
load::TargetGroups/TargetGroupsQueryBuilder_php 1 140 µs 141 µs 18,000 bytes bytes 140 µs 141 µs 18,000 bytes bytes
load::Payments/StatementCreator_php 1 137 µs 139 µs 6,616 bytes bytes 137 µs 139 µs 6,616 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::handle 1 137 µs 134 µs -15,256 bytes bytes 72,941 µs 35,934 µs 534,360 bytes bytes
load::Payments/PaymentStatementMetadataCast_php 1 128 µs 130 µs 5,440 bytes bytes 128 µs 130 µs 5,440 bytes bytes
load::Query/Expression_php 2 119 µs 121 µs 12,128 bytes bytes 119 µs 121 µs 12,128 bytes bytes
load::Database/QueryException_php 1 116 µs 118 µs 10,232 bytes bytes 116 µs 118 µs 10,232 bytes bytes
load::TargetGroups/TargetGroup_php 1 112 µs 114 µs 7,896 bytes bytes 112 µs 114 µs 7,896 bytes bytes
Illuminate\Database\MySqlConnection::isUniqueConstraintError 1 111 µs 113 µs 664 bytes bytes 111 µs 113 µs 664 bytes bytes
load::TargetGroups/CustomerParameters_php 1 108 µs 109 µs 18,752 bytes bytes 108 µs 109 µs 18,752 bytes bytes
load::Json/ResourceCollection_php 1 101 µs 102 µs 14,240 bytes bytes 101 µs 102 µs 14,240 bytes bytes
load::OrderProcess/UserInfo_php 1 100 µs 101 µs 2,496 bytes bytes 100 µs 101 µs 2,496 bytes bytes
load::Resources/CollectsResources_php 1 96 µs 97 µs 13,248 bytes bytes 96 µs 97 µs 13,248 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 94 µs 91 µs -1,216 bytes bytes 2,023 µs 1,157 µs 6,208 bytes bytes
load::TargetGroups/TargetGroupsMatcher_php 1 91 µs 93 µs 5,360 bytes bytes 91 µs 93 µs 5,360 bytes bytes
load::Resources/DelegatesToResource_php 1 91 µs 92 µs 13,960 bytes bytes 91 µs 92 µs 13,960 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAddit… 3 80 µs 75 µs 4,376 bytes bytes 2,805 µs 1,104 µs 7,072 bytes bytes
load::Facades/Redis_php 1 77 µs 78 µs 8,200 bytes bytes 77 µs 78 µs 8,200 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::getKey 2 75 µs 79 µs 1,328 bytes bytes 75 µs 79 µs 1,328 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::__construct 3 73 µs 68 µs 4,768 bytes bytes 9,581 µs 4,899 µs 181,928 bytes bytes
Illuminate\Database\Eloquent\Collection::map 3 64 µs 23 µs 872 bytes bytes 64 µs 23 µs 872 bytes bytes
load::settings/customers_php 1 55 µs 57 µs 4,992 bytes bytes 55 µs 57 µs 4,992 bytes bytes
load::AdditionalFields/AdditionalFieldTypes_php 1 55 µs 55 µs 5,312 bytes bytes 55 µs 55 µs 5,312 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 55 µs 54 µs 3,304 bytes bytes 83 µs 85 µs 91,840 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::newCollection 3 53 µs 49 µs 6,904 bytes bytes 439 µs 440 µs 44,008 bytes bytes
load::settings/captive_portal_php 1 52 µs 52 µs 7,416 bytes bytes 52 µs 52 µs 7,416 bytes bytes
load::Labels/LabelResource_php 1 52 µs 52 µs 3,896 bytes bytes 52 µs 52 µs 3,896 bytes bytes
load::Json/AnonymousResourceCollection_php 1 52 µs 53 µs 4,536 bytes bytes 52 µs 53 µs 4,536 bytes bytes
load::TargetGroups/TargetGroupRepository_php 1 51 µs 52 µs 3,360 bytes bytes 51 µs 52 µs 3,360 bytes bytes
load::Labels/LabelsRepository_php 1 50 µs 51 µs 3,712 bytes bytes 50 µs 51 µs 3,712 bytes bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 46 µs 48 µs 792 bytes bytes 46 µs 48 µs 792 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsert 1 46 µs 45 µs 2,072 bytes bytes 49 µs 50 µs 2,792 bytes bytes
load::CustomerQuery/CustomerQueryInterface_php 1 45 µs 45 µs 4,304 bytes bytes 45 µs 45 µs 4,304 bytes bytes
Illuminate\Database\Eloquent\Model::setCreatedAt 1 44 µs 45 µs 896 bytes bytes 44 µs 45 µs 896 bytes bytes
load::settings/finance_php 1 42 µs 43 µs 7,008 bytes bytes 42 µs 43 µs 7,008 bytes bytes
Xhgui\Profiler\Profiler::disable 1 42 µs 38 µs -4,224 bytes bytes 213 µs 213 µs 15,728 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::tryToAcquireLock 1 39 µs 33 µs -2,608 bytes bytes 4,346 µs 1,147 µs 19,632 bytes bytes
Illuminate\Database\Eloquent\Model::setUpdatedAt 1 39 µs 40 µs 896 bytes bytes 39 µs 40 µs 896 bytes bytes
App\Dto\BaseData::toJson 8 38 µs 39 µs -1,848 bytes bytes 52 µs 58 µs 2,088 bytes bytes
Illuminate\Database\Eloquent\Model::updateTimestamps 1 38 µs 34 µs 72 bytes bytes 176 µs 177 µs 5,352 bytes bytes
Illuminate\Database\Query\Builder::leftJoin 2 36 µs 35 µs 3,560 bytes bytes 38 µs 39 µs 4,160 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 36 µs 36 µs 696 bytes bytes 36 µs 36 µs 696 bytes bytes
Illuminate\Database\Query\Builder::selectRaw 2 35 µs 32 µs -1,984 bytes bytes 156 µs 156 µs 10,744 bytes bytes
Illuminate\Database\Eloquent\Model::performInsert 1 33 µs 27 µs 368 bytes bytes 1,414 µs 995 µs 17,144 bytes bytes
Illuminate\Database\Eloquent\Model::freshTimestamp 1 32 µs 33 µs 1,344 bytes bytes 32 µs 33 µs 1,344 bytes bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 8 31 µs 29 µs 2,592 bytes bytes 83 µs 87 µs 4,680 bytes bytes
App\Repositories\Tenant\TargetGroups\TargetGroupRepository::getAv… 3 30 µs 27 µs -4,288 bytes bytes 7,064 µs 3,799 µs 170,656 bytes bytes
url 1 30 µs 31 µs 1,608 bytes bytes 30 µs 31 µs 1,608 bytes bytes
Illuminate\Database\Eloquent\Model::insertAndSetId 1 28 µs 30 µs 1,680 bytes bytes 1,183 µs 767 µs 8,480 bytes bytes
load::settings/splynx_integration_php 1 27 µs 28 µs 6,192 bytes bytes 27 µs 28 µs 6,192 bytes bytes
load::settings/status_page_notifications_php 1 27 µs 28 µs 5,816 bytes bytes 27 µs 28 µs 5,816 bytes bytes
App\Services\RedirectFlow\Adverts\CampaignDetector::detectTargetG… 1 27 µs 23 µs -20,160 bytes bytes 15,271 µs 8,083 µs 456,560 bytes bytes
load::settings/finance_notifications_php 1 26 µs 27 µs 4,768 bytes bytes 26 µs 27 µs 4,768 bytes bytes
load::settings/voucher_limit_notifications_php 1 26 µs 27 µs 6,000 bytes bytes 26 µs 27 µs 6,000 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::initializeSoftDeletes… 5 26 µs 21 µs 696 bytes bytes 40 µs 40 µs 1,328 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::collectResourc… 3 24 µs 22 µs 760 bytes bytes 107 µs 109 µs 2,960 bytes bytes
load::settings/portal_php 1 23 µs 23 µs 3,160 bytes bytes 23 µs 23 µs 3,160 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::collection 3 21 µs 19 µs 760 bytes bytes 465 µs 466 µs 45,432 bytes bytes
Illuminate\Database\Query\Builder::insertGetId 1 21 µs 20 µs 944 bytes bytes 1,155 µs 737 µs 6,800 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::__construct 3 19 µs 14 µs 792 bytes bytes 129 µs 129 µs 4,384 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAllPa… 3 19 µs 17 µs -3,072 bytes bytes 6,926 µs 3,663 µs 156,192 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 19 µs 20 µs 664 bytes bytes 19 µs 20 µs 664 bytes bytes
Illuminate\Database\Connection::causedByLostConnection 1 18 µs 19 µs 632 bytes bytes 18 µs 19 µs 632 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::getDeletedAtColumn 11 16 µs 22 µs 1,296 bytes bytes 16 µs 22 µs 1,296 bytes bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 16 µs 16 µs 832 bytes bytes 36 µs 37 µs 4,176 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildConditio… 2 15 µs 18 µs 3,672 bytes bytes 15 µs 18 µs 3,672 bytes bytes
App\Http\Middleware\RedirectFlowRouteMutex::unlock 1 15 µs 12 µs 744 bytes bytes 493 µs 253 µs 2,624 bytes bytes
App\Dto\BaseData::toArray 8 14 µs 19 µs 3,936 bytes bytes 14 µs 19 µs 3,936 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::getQualifiedDeletedAt… 1 13 µs 12 µs 752 bytes bytes 15 µs 15 µs 1,416 bytes bytes
Illuminate\Support\Collection::mapInto 3 13 µs 57 µs 696 bytes bytes 77 µs 80 µs 1,568 bytes bytes
Illuminate\Database\Query\Processors\MySqlProcessor::processInser… 1 13 µs 12 µs 760 bytes bytes 1,074 µs 656 µs 2,880 bytes bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 8 12 µs 18 µs 5,568 bytes bytes 12 µs 18 µs 5,568 bytes bytes
Illuminate\Database\Eloquent\Model::getAttributesForInsert 1 11 µs 11 µs 640 bytes bytes 21 µs 22 µs 2,344 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 10 µs µs 82,680 bytes bytes 25 µs 26 µs 86,352 bytes bytes
Illuminate\Support\Str::replaceArray 1 10 µs 10 µs 1,592 bytes bytes 13 µs 14 µs 2,208 bytes bytes
Illuminate\Http\Resources\Json\AnonymousResourceCollection::__con… 3 µs 10 µs 696 bytes bytes 137 µs 139 µs 5,080 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::App\Service… 3 µs 11 µs 696 bytes bytes µs 11 µs 696 bytes bytes
Illuminate\Routing\Route::Illuminate\Routing\{closure} 2 µs µs 1,200 bytes bytes µs µs 1,200 bytes bytes
Illuminate\Database\QueryException::__construct 1 µs µs 664 bytes bytes 25 µs 25 µs 3,024 bytes bytes
App\Models\Tenant\TargetGroups\TargetGroup::bootSoftDeletes 1 µs µs 1,064 bytes bytes µs µs 1,064 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::collects 3 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::compileInsert 1 µs µs -512 bytes bytes 55 µs 55 µs 2,280 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 1 µs µs 664 bytes bytes µs µs 664 bytes bytes
Illuminate\Routing\RouteParameterBinder::Illuminate\Routing\{clos… 2 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::Illuminate\Http\Reso… 3 µs µs 664 bytes bytes µs µs 664 bytes bytes
Illuminate\Database\QueryException::formatMessage 1 µs µs 152 bytes bytes 18 µs 19 µs 2,360 bytes bytes
Illuminate\Database\Connection::tryAgainIfCausedByLostConnection 1 µs µs 696 bytes bytes 23 µs 24 µs 1,328 bytes bytes
Illuminate\Database\Connection::handleQueryException 1 µs µs 696 bytes bytes 28 µs 28 µs 2,024 bytes bytes
App\Dto\BaseData::fromArray 1 µs µs 680 bytes bytes µs µs 680 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsertGetId 1 µs µs 696 bytes bytes 60 µs 61 µs 2,976 bytes bytes
Xhgui\Profiler\ProfilingData::__construct 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Routing\UrlGenerator::Stancl\Tenancy\Bootstrappers\{cl… 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Routing\Route::parameter 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 µs µs 696 bytes bytes 23 µs 24 µs 1,360 bytes bytes
Xhgui\Profiler\Profiler::registerShutdownHandler 1 µs µs 1,200 bytes bytes µs µs 1,200 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::__construct 3 µs µs 632 bytes bytes µs µs 632 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildOrWhereG… 2 µs µs 2,184 bytes bytes µs µs 2,184 bytes bytes
Illuminate\Database\Query\Expression::getValue 2 µs µs 600 bytes bytes µs µs 600 bytes bytes
Illuminate\Support\Str::toStringOr 2 µs µs 616 bytes bytes µs µs 616 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::Illuminate\Database\Q… 1 µs µs 720 bytes bytes µs µs 720 bytes bytes
Xhgui\Profiler\Profilers\XHProf::disable 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Support\Facades\Redis::getFacadeAccessor 2 µs µs 1,904 bytes bytes µs µs 1,904 bytes bytes
Illuminate\Database\Query\Expression::__construct 2 µs µs 600 bytes bytes µs µs 600 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::getOperators 2 µs µs 600 bytes bytes µs µs 600 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
Illuminate\Database\Eloquent\Model::usesUniqueIds 1 µs µs 600 bytes bytes µs µs 600 bytes bytes