Profile data for GET http://gigielectrical.powerlynx.app/portal/api/redirect-flow/order-plan/4?hash=428ae990b9eea5a21ab00ab24beea2ba&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()
108,980 µs
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAvailableForLocation
101,447 µs
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
46,266 µs
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGateway
10,556 µs
Illuminate\Database\MySqlConnection::Illuminate\Database\{closure}
7,302 µs
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__construct
7,158 µs

Memory Hogs

load::settings/localization_php
95,240 bytes
load::settings/splynx_integration_php
64,808 bytes
load::settings/captive_portal_php
7,416 bytes
load::settings/finance_php
7,008 bytes
Xhgui\Profiler\Profilers\XHProf::disable
6,216 bytes
load::settings/voucher_limit_notifications_php
6,000 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 108,980 µs 20,075 µs -19,464 bytes 0 bytes 295,326 µs 87,384 µs 169,584 bytes 0 bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAv… 1 101,447 µs 27,352 µs -22,736 bytes 0 bytes 102,149 µs 28,033 µs 13,072 bytes 0 bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderP… 1 46,266 µs 17,469 µs -1,304 bytes 0 bytes 185,603 µs 66,551 µs 102,632 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 10,556 µs 10,133 µs 2,912 bytes 0 bytes 10,556 µs 10,133 µs 2,912 bytes 0 bytes
Illuminate\Database\MySqlConnection::Illuminate\Database\{closure… 1 7,302 µs 2,028 µs 2,488 bytes 0 bytes 7,302 µs 2,028 µs 2,488 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 7,158 µs 2,857 µs -8,656 bytes 0 bytes 7,342 µs 3,033 µs 3,256 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 5,259 µs 1,758 µs -27,360 bytes 0 bytes 5,629 µs 2,076 µs 5,120 bytes 0 bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::checkIfPlan… 1 2,723 µs 761 µs 2,064 bytes 0 bytes 2,723 µs 761 µs 2,064 bytes 0 bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 1,388 µs 978 µs 1,120 bytes 0 bytes 1,388 µs 978 µs 1,120 bytes 0 bytes
load::settings/splynx_integration_php 11 1,090 µs 1,065 µs 64,808 bytes 0 bytes 1,090 µs 1,065 µs 64,808 bytes 0 bytes
load::settings/localization_php 3 780 µs 691 µs 95,240 bytes 0 bytes 780 µs 691 µs 95,240 bytes 0 bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 426 µs 417 µs 2,936 bytes 0 bytes 8,649 µs 3,205 µs 28,000 bytes 0 bytes
Illuminate\Database\MySqlConnection::insert 1 389 µs 220 µs -1,000 bytes 0 bytes 7,691 µs 2,248 µs 1,488 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 184 µs 179 µs -1,256 bytes 0 bytes 5,865 µs 2,309 µs 6,136 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 161 µs 153 µs 312 bytes 0 bytes 32,577 µs 18,838 µs 41,248 bytes 0 bytes
load::settings/captive_portal_php 1 111 µs 113 µs 7,416 bytes 0 bytes 111 µs 113 µs 7,416 bytes 0 bytes
load::settings/customers_php 1 95 µs 98 µs 4,992 bytes 0 bytes 95 µs 98 µs 4,992 bytes 0 bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 71 µs 73 µs 696 bytes 0 bytes 71 µs 73 µs 696 bytes 0 bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsert 1 64 µs 64 µs 2,072 bytes 0 bytes 69 µs 71 µs 2,792 bytes 0 bytes
load::settings/finance_php 1 60 µs 60 µs 7,008 bytes 0 bytes 60 µs 60 µs 7,008 bytes 0 bytes
Illuminate\Database\Eloquent\Model::updateTimestamps 1 53 µs 47 µs 72 bytes 0 bytes 197 µs 198 µs 6,552 bytes 0 bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 51 µs 53 µs 728 bytes 0 bytes 51 µs 53 µs 728 bytes 0 bytes
Illuminate\Database\Eloquent\Model::setUpdatedAt 1 47 µs 48 µs 856 bytes 0 bytes 47 µs 48 µs 856 bytes 0 bytes
App\Dto\BaseData::toJson 8 46 µs 41 µs -1,848 bytes 0 bytes 63 µs 66 µs 2,088 bytes 0 bytes
url 1 45 µs 46 µs 1,608 bytes 0 bytes 45 µs 46 µs 1,608 bytes 0 bytes
Illuminate\Database\Eloquent\Model::freshTimestamp 1 44 µs 47 µs 2,624 bytes 0 bytes 44 µs 47 µs 2,624 bytes 0 bytes
Illuminate\Database\Eloquent\Model::insertAndSetId 1 43 µs 43 µs 1,360 bytes 0 bytes 7,864 µs 2,420 µs 8,160 bytes 0 bytes
Illuminate\Database\Eloquent\Model::performInsert 1 41 µs 37 µs 176 bytes 0 bytes 8,129 µs 2,684 µs 17,832 bytes 0 bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 8 37 µs 40 µs 2,592 bytes 0 bytes 100 µs 106 µs 4,680 bytes 0 bytes
load::settings/finance_notifications_php 1 35 µs 36 µs 4,448 bytes 0 bytes 35 µs 36 µs 4,448 bytes 0 bytes
load::settings/status_page_notifications_php 1 34 µs 36 µs 5,816 bytes 0 bytes 34 µs 36 µs 5,816 bytes 0 bytes
load::settings/portal_php 1 33 µs 35 µs 3,160 bytes 0 bytes 33 µs 35 µs 3,160 bytes 0 bytes
load::settings/voucher_limit_notifications_php 1 33 µs 34 µs 6,000 bytes 0 bytes 33 µs 34 µs 6,000 bytes 0 bytes
Illuminate\Database\Query\Builder::insertGetId 1 29 µs 28 µs 944 bytes 0 bytes 7,821 µs 2,377 µs 6,800 bytes 0 bytes
Xhgui\Profiler\Profiler::disable 1 28 µs 20 µs 776 bytes 0 bytes 37 µs 36 µs 7,576 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 26 µs 27 µs 664 bytes 0 bytes 26 µs 27 µs 664 bytes 0 bytes
Illuminate\Database\Eloquent\Model::setCreatedAt 1 26 µs 26 µs 856 bytes 0 bytes 26 µs 26 µs 856 bytes 0 bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 22 µs 20 µs 832 bytes 0 bytes 42 µs 43 µs 4,176 bytes 0 bytes
App\Dto\BaseData::toArray 8 17 µs 25 µs 3,936 bytes 0 bytes 17 µs 25 µs 3,936 bytes 0 bytes
Illuminate\Database\Query\Processors\MySqlProcessor::processInser… 1 17 µs 14 µs 760 bytes 0 bytes 7,710 µs 2,266 µs 2,880 bytes 0 bytes
Illuminate\Database\Eloquent\Model::getAttributesForInsert 1 13 µs 12 µs 640 bytes 0 bytes 25 µs 26 µs 2,344 bytes 0 bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 8 11 µs 22 µs 5,568 bytes 0 bytes 11 µs 22 µs 5,568 bytes 0 bytes
App\Dto\BaseData::fromArray 1 10 µs 11 µs 680 bytes 0 bytes 10 µs 11 µs 680 bytes 0 bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::App\Service… 2 9 µs 10 µs 1,336 bytes 0 bytes 9 µs 10 µs 1,336 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 9 µs 9 µs 696 bytes 0 bytes 35 µs 36 µs 1,360 bytes 0 bytes
Illuminate\Routing\UrlGenerator::Stancl\Tenancy\Bootstrappers\{cl… 1 8 µs 9 µs 584 bytes 0 bytes 8 µs 9 µs 584 bytes 0 bytes
Xhgui\Profiler\Profiler::registerShutdownHandler 1 7 µs 9 µs 1,200 bytes 0 bytes 7 µs 9 µs 1,200 bytes 0 bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::compileInsert 1 7 µs 6 µs -512 bytes 0 bytes 76 µs 77 µs 2,280 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 1 7 µs 8 µs 664 bytes 0 bytes 7 µs 8 µs 664 bytes 0 bytes
Xhgui\Profiler\ProfilingData::__construct 1 7 µs 10 µs 584 bytes 0 bytes 7 µs 10 µs 584 bytes 0 bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsertGetId 1 6 µs 6 µs 696 bytes 0 bytes 82 µs 83 µs 2,976 bytes 0 bytes
Illuminate\Database\Query\Grammars\Grammar::Illuminate\Database\Q… 1 5 µs 7 µs 720 bytes 0 bytes 5 µs 7 µs 720 bytes 0 bytes
App\Services\RedirectFlow\Payments\StatementCreator::__construct 1 4 µs 5 µs 632 bytes 0 bytes 4 µs 5 µs 632 bytes 0 bytes
Illuminate\Database\Eloquent\Model::usesUniqueIds 1 2 µs 3 µs 600 bytes 0 bytes 2 µs 3 µs 600 bytes 0 bytes
Illuminate\Database\MySqlConnection::getLastInsertId 1 2 µs 4 µs 632 bytes 0 bytes 2 µs 4 µs 632 bytes 0 bytes
Xhgui\Profiler\Profilers\XHProf::disable 1 2 µs 6 µs 6,216 bytes 0 bytes 2 µs 6 µs 6,216 bytes 0 bytes