Profile data for GET http://gigielectrical.powerlynx.app/portal/api/redirect-flow/order-plan/21?hash=00766ee31b25c17e44eafb6070e3b162&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

main()
13,827 µs
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
12,466 µs
App\Models\Tenant\Finance\Payment\PaymentGateway::getGlobalGateway
8,938 µs
App\Services\PaymentGateways\GlobalGateway::config
4,592 µs
App\Models\Tenant\Location::getEnabledGlobalGateways
3,036 µs
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generateDataForEncryption
1,593 µs

Memory Hogs

load::settings/localization_php
95,240 bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
77,152 bytes
load::Tenant/Plan_php
66,640 bytes
load::settings/splynx_integration_php
64,776 bytes
load::Concerns/AsPivot_php
41,984 bytes
App\Models\Tenant\Location::getEnabledGlobalGateways
33,072 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
main() 1 13,827 µs 6,778 µs -12,208 bytes bytes 57,051 µs 31,979 µs 584,208 bytes bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderP… 1 12,466 µs 6,722 µs 77,152 bytes bytes 42,385 µs 24,351 µs 485,464 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getGlobalGatewa… 3 8,938 µs 5,206 µs -26,440 bytes bytes 9,148 µs 5,423 µs 8,032 bytes bytes
App\Services\PaymentGateways\GlobalGateway::config 6 4,592 µs 1,797 µs 9,832 bytes bytes 4,711 µs 1,918 µs 37,384 bytes bytes
App\Models\Tenant\Location::getEnabledGlobalGateways 1 3,036 µs 1,231 µs 33,072 bytes bytes 17,316 µs 7,968 µs 152,824 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 1,593 µs 987 µs -27,328 bytes bytes 1,773 µs 1,256 µs 5,152 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::getTemporar… 1 1,421 µs 394 µs 112 bytes bytes 1,462 µs 437 µs 4,400 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::loadCustomG… 1 1,074 µs 549 µs 5,320 bytes bytes 7,948 µs 3,632 µs 14,776 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::getEnabledF… 1 995 µs 563 µs 1,904 bytes bytes 5,787 µs 2,553 µs 40,864 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 924 µs 704 µs 3,880 bytes bytes 924 µs 704 µs 3,880 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 922 µs 918 µs 2,912 bytes bytes 922 µs 918 µs 2,912 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::loadTitle 2 818 µs 392 µs 2,512 bytes bytes 6,857 µs 3,066 µs 8,712 bytes bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 734 µs 347 µs 6,752 bytes bytes 734 µs 347 µs 6,752 bytes bytes
Illuminate\Database\MySqlConnection::Illuminate\Database\{closure… 1 706 µs 78 µs 2,552 bytes bytes 729 µs 102 µs 3,184 bytes bytes
load::Tenant/Plan_php 1 381 µs 383 µs 66,640 bytes bytes 381 µs 383 µs 66,640 bytes bytes
load::settings/splynx_integration_php 11 365 µs 375 µs 64,776 bytes bytes 365 µs 375 µs 64,776 bytes bytes
load::settings/localization_php 3 360 µs 366 µs 95,240 bytes bytes 360 µs 366 µs 95,240 bytes bytes
load::Concerns/AsPivot_php 1 290 µs 291 µs 41,984 bytes bytes 290 µs 291 µs 41,984 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 288 µs 235 µs 200 bytes bytes 1,911 µs 1,173 µs 41,232 bytes bytes
load::src/ProfilingData_php 1 210 µs 212 µs 18,784 bytes bytes 210 µs 212 µs 18,784 bytes bytes
Illuminate\Database\MySqlConnection::insert 1 208 µs 99 µs -1,000 bytes bytes 937 µs 201 µs 2,184 bytes bytes
load::Payments/OrderProcessor_php 1 196 µs 198 µs 16,912 bytes bytes 196 µs 198 µs 16,912 bytes bytes
load::TrialSessions/TrialSessionsMaker_php 1 165 µs 166 µs 16,384 bytes bytes 165 µs 166 µs 16,384 bytes bytes
load::RedirectFlow/PlansRepository_php 1 150 µs 150 µs 21,416 bytes bytes 150 µs 150 µs 21,416 bytes bytes
load::Payments/GatewayLinkGenerator_php 1 142 µs 143 µs 15,912 bytes bytes 142 µs 143 µs 15,912 bytes bytes
Illuminate\Database\Eloquent\Model::save 1 137 µs 131 µs -160 bytes bytes 1,392 µs 654 µs 23,544 bytes bytes
load::Payment/PaymentGatewayGlobalConfig_php 1 119 µs 121 µs 27,552 bytes bytes 119 µs 121 µs 27,552 bytes bytes
load::Eloquent/CastsAttributes_php 1 112 µs 114 µs 4,688 bytes bytes 112 µs 114 µs 4,688 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 103 µs 97 µs -8,360 bytes bytes 8,179 µs 6,658 µs 69,776 bytes bytes
load::Dto/BaseData_php 1 99 µs 101 µs 9,808 bytes bytes 99 µs 101 µs 9,808 bytes bytes
load::Payments/StatementCreator_php 1 93 µs 197 µs 6,616 bytes bytes 93 µs 197 µs 6,616 bytes bytes
App\Models\Tenant\Plan::boot 1 86 µs 86 µs 2,344 bytes bytes 144 µs 144 µs 13,576 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::App\Service… 8 84 µs 77 µs 2,272 bytes bytes 4,795 µs 1,995 µs 39,656 bytes bytes
load::settings/customers_php 1 73 µs 73 µs 4,992 bytes bytes 73 µs 73 µs 4,992 bytes bytes
load::Payments/PaymentStatementMetadataCast_php 1 72 µs 122 µs 5,520 bytes bytes 72 µs 122 µs 5,520 bytes bytes
load::Relations/Pivot_php 1 69 µs 70 µs 3,136 bytes bytes 69 µs 70 µs 3,136 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 60 µs 56 µs -576 bytes bytes 1,861 µs 1,342 µs 6,848 bytes bytes
load::settings/captive_portal_php 1 59 µs 60 µs 7,416 bytes bytes 59 µs 60 µs 7,416 bytes bytes
load::Payment/LocationPaymentGateway_php 1 58 µs 60 µs 3,024 bytes bytes 58 µs 60 µs 3,024 bytes bytes
load::OrderProcess/UserInfo_php 1 54 µs 54 µs 3,720 bytes bytes 54 µs 54 µs 3,720 bytes bytes
load::settings/finance_php 1 41 µs 43 µs 7,008 bytes bytes 41 µs 43 µs 7,008 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 40 µs 126 µs 696 bytes bytes 40 µs 126 µs 696 bytes bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 39 µs 240 µs 792 bytes bytes 39 µs 240 µs 792 bytes bytes
Illuminate\Database\Eloquent\Collection::contains@1 2 35 µs 37 µs 1,432 bytes bytes 35 µs 37 µs 1,432 bytes bytes
Xhgui\Profiler\Profiler::disable 1 35 µs 30 µs -4,224 bytes bytes 254 µs 254 µs 15,728 bytes bytes
Illuminate\Database\Eloquent\Model::updateTimestamps 1 32 µs 28 µs 56 bytes bytes 134 µs 135 µs 6,048 bytes bytes
App\Dto\BaseData::toJson 8 30 µs 31 µs -1,848 bytes bytes 52 µs 56 µs 2,088 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsert 1 30 µs 32 µs 2,072 bytes bytes 34 µs 36 µs 2,792 bytes bytes
Illuminate\Database\Eloquent\Model::setUpdatedAt 1 29 µs 30 µs 896 bytes bytes 29 µs 30 µs 896 bytes bytes
load::settings/portal_php 1 27 µs 29 µs 3,160 bytes bytes 27 µs 29 µs 3,160 bytes bytes
Illuminate\Database\Eloquent\Model::resolveCasterClass 8 27 µs 31 µs 3,448 bytes bytes 27 µs 31 µs 3,448 bytes bytes
App\Models\Tenant\Plan::bootLogsActivity 1 26 µs 23 µs 384 bytes bytes 54 µs 54 µs 9,592 bytes bytes
load::settings/finance_notifications_php 1 25 µs 27 µs 4,448 bytes bytes 25 µs 27 µs 4,448 bytes bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 8 25 µs 22 µs 3,192 bytes bytes 77 µs 78 µs 5,280 bytes bytes
Illuminate\Database\Eloquent\Model::performInsert 1 24 µs 18 µs 400 bytes bytes 1,209 µs 471 µs 19,848 bytes bytes
url 1 24 µs 25 µs 1,608 bytes bytes 24 µs 25 µs 1,608 bytes bytes
Illuminate\Database\Eloquent\Model::freshTimestamp 1 23 µs 25 µs 1,344 bytes bytes 23 µs 25 µs 1,344 bytes bytes
Illuminate\Database\Connection::recordsHaveBeenModified 1 23 µs 24 µs 632 bytes bytes 23 µs 24 µs 632 bytes bytes
App\Dto\BaseData::toArray 8 22 µs 25 µs 3,936 bytes bytes 22 µs 25 µs 3,936 bytes bytes
load::settings/status_page_notifications_php 1 20 µs 21 µs 5,816 bytes bytes 20 µs 21 µs 5,816 bytes bytes
Illuminate\Database\Eloquent\Model::insertAndSetId 1 20 µs 22 µs 1,680 bytes bytes 1,030 µs 294 µs 9,176 bytes bytes
load::settings/voucher_limit_notifications_php 1 19 µs 19 µs 6,000 bytes bytes 19 µs 19 µs 6,000 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::exitStatementI… 1 19 µs 21 µs 696 bytes bytes 19 µs 21 µs 696 bytes bytes
now 1 17 µs 18 µs 1,344 bytes bytes 17 µs 18 µs 1,344 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::App\Reposit… 1 17 µs 18 µs 2,184 bytes bytes 34 µs 36 µs 3,528 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getDisplayName 2 17 µs 17 µs 744 bytes bytes 17 µs 17 µs 744 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAv… 1 16 µs 13 µs -13,632 bytes bytes 17,335 µs 7,986 µs 139,888 bytes bytes
Illuminate\Database\Eloquent\Model::setCreatedAt 1 16 µs 17 µs 896 bytes bytes 16 µs 17 µs 896 bytes bytes
Illuminate\Database\Query\Builder::insertGetId 1 16 µs 15 µs 944 bytes bytes 1,010 µs 272 µs 7,496 bytes bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 15 µs 12 µs 856 bytes bytes 38 µs 38 µs 4,872 bytes bytes
App\Models\Tenant\Plan::Spatie\Activitylog\Traits\{closure} 4 14 µs 16 µs 7,416 bytes bytes 16 µs 18 µs 8,312 bytes bytes
App\Models\Tenant\Plan::initializeSoftDeletes 3 14 µs 13 µs 696 bytes bytes 22 µs 24 µs 1,296 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 14 µs 12 µs 824 bytes bytes 3,126 µs 2,765 µs 3,288 bytes bytes
Illuminate\Database\Eloquent\Collection::contains 2 13 µs 12 µs 696 bytes bytes 48 µs 49 µs 2,128 bytes bytes
App\Models\Tenant\Plan::eventsToBeRecorded 1 12 µs 13 µs 896 bytes bytes 12 µs 13 µs 896 bytes bytes
Illuminate\Events\Dispatcher::until 2 12 µs 14 µs 1,168 bytes bytes 12 µs 14 µs 1,168 bytes bytes
Illuminate\Database\Query\Processors\MySqlProcessor::processInser… 1 12 µs 10 µs 760 bytes bytes 951 µs 213 µs 3,576 bytes bytes
App\Models\Tenant\Plan::getDeletedAtColumn 7 µs 13 µs 1,200 bytes bytes µs 13 µs 1,200 bytes bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 8 µs 15 µs 6,200 bytes bytes µs 15 µs 6,200 bytes bytes
App\Models\Tenant\Plan::getQualifiedDeletedAtColumn 1 µs µs 744 bytes bytes µs 10 µs 1,344 bytes bytes
Illuminate\Database\Eloquent\Relations\Pivot::getTable 5 µs µs 632 bytes bytes µs µs 632 bytes bytes
App\Models\Tenant\Location::App\Models\Tenant\{closure} 2 µs µs 696 bytes bytes 56 µs 56 µs 2,824 bytes bytes
Illuminate\Database\Eloquent\Collection::pluck 1 µs µs 760 bytes bytes µs µs 760 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 µs µs 696 bytes bytes 931 µs 710 µs 4,576 bytes bytes
Illuminate\Database\Eloquent\Model::getAttributesForInsert 1 µs µs 664 bytes bytes 16 µs 17 µs 3,040 bytes bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::compileInsert 1 µs µs -512 bytes bytes 40 µs 40 µs 2,280 bytes bytes
Symfony\Component\HttpFoundation\Request::get 1 µs µs 584 bytes bytes µs µs 584 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\Http\Request::get 1 µs µs 664 bytes bytes µs µs 1,248 bytes bytes
App\Models\Tenant\Plan::bootSoftDeletes 1 µs µs 1,640 bytes bytes µs µs 1,640 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::checkIfPlan… 1 µs µs 576 bytes bytes 1,466 µs 441 µs 4,976 bytes bytes
App\Dto\BaseData::fromArray 1 µs µs 744 bytes bytes µs µs 1,928 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::Illuminate\Database\Q… 1 µs µs 720 bytes bytes µs µs 720 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 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
Xhgui\Profiler\Profiler::registerShutdownHandler 1 µs µs 1,200 bytes bytes µs µs 1,200 bytes bytes
App\Services\PaymentGateways\GlobalGateway::getTitle 2 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsertGetId 1 µs µs 696 bytes bytes 43 µs 44 µs 2,976 bytes bytes
App\Models\Tenant\Plan::restored 1 µs µs 896 bytes bytes µs µs 896 bytes bytes
App\Dto\BaseData::fill 1 µs µs 552 bytes bytes µs µs 552 bytes bytes
App\Dto\BaseData::__construct 1 µs µs 632 bytes bytes µs µs 1,184 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::getHiddenGateways 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