Profile data for GET http://swift.powerlynx.app/portal/api/redirect-flow/order-plan/5?hash=b88d4c7de4d478788aff88c74808bbb7&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
36,744 µs
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderPlan
21,663 µs
main()
16,786 µs
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFieldsConfigsRepository::getAllUsableAdditionalFields
7,274 µs
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabelResources
3,608 µs
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__construct
3,451 µs

Memory Hogs

load::Payments/OrderProcessor_php
98,832 bytes
load::settings/localization_php
95,240 bytes
load::Resources/ConditionallyLoadsAttributes_php
63,392 bytes
load::CustomerQuery/CustomerQueryTrait_php
52,960 bytes
load::Json/JsonResource_php
26,216 bytes
load::src/ProfilingData_php
18,784 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 36,744 µs 15,285 µs 16,672 bytes bytes 36,754 µs 15,296 µs 17,368 bytes bytes
App\Http\Controllers\Tenant\CaptivePortal\PlansController::orderP… 1 21,663 µs 11,678 µs -60,544 bytes bytes 85,455 µs 43,742 µs 461,496 bytes bytes
main() 1 16,786 µs 9,332 µs -25,344 bytes bytes 103,273 µs 54,082 µs 547,304 bytes bytes
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFields… 6 7,274 µs 2,696 µs 5,840 bytes bytes 7,274 µs 2,696 µs 5,840 bytes bytes
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabel… 3 3,608 µs 1,549 µs -25,000 bytes bytes 4,684 µs 2,633 µs 128,528 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 3,451 µs 2,752 µs 3,840 bytes bytes 3,451 µs 2,752 µs 3,840 bytes bytes
App\Repositories\Tenant\RedirectFlow\PlansRepository::checkIfPlan… 1 1,879 µs 666 µs 1,904 bytes bytes 1,879 µs 666 µs 1,904 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 1,719 µs 849 µs -27,328 bytes bytes 1,907 µs 1,038 µs 5,152 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 1,139 µs 1,026 µs 2,912 bytes bytes 1,139 µs 1,026 µs 2,912 bytes bytes
Illuminate\Database\MySqlConnection::Illuminate\Database\{closure… 1 944 µs 77 µs 2,488 bytes bytes 944 µs 77 µs 2,488 bytes bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 936 µs 799 µs 1,120 bytes bytes 936 µs 799 µs 1,120 bytes bytes
load::settings/localization_php 3 403 µs 407 µs 95,240 bytes bytes 403 µs 407 µs 95,240 bytes bytes
load::CustomerQuery/CustomerQueryTrait_php 1 349 µs 352 µs 52,960 bytes bytes 349 µs 352 µs 52,960 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 329 µs 326 µs 5,776 bytes bytes 1,956 µs 983 µs 35,592 bytes bytes
load::Resources/ConditionallyLoadsAttributes_php 1 302 µs 305 µs 63,392 bytes bytes 302 µs 305 µs 63,392 bytes bytes
load::TrialSessions/TrialSessionsMaker_php 1 290 µs 292 µs 16,584 bytes bytes 290 µs 292 µs 16,584 bytes bytes
load::TargetGroups/TargetGroupsQueryBuilder_php 1 289 µs 256 µs 18,072 bytes bytes 289 µs 256 µs 18,072 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::build 3 257 µs 258 µs 6,808 bytes bytes 642 µs 647 µs 26,000 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getBaseP… 3 253 µs 254 µs 16,192 bytes bytes 4,986 µs 2,937 µs 148,432 bytes bytes
load::Payments/OrderProcessor_php 1 243 µs 575 µs 98,832 bytes bytes 243 µs 575 µs 98,832 bytes bytes
load::src/ProfilingData_php 1 243 µs 208 µs 18,784 bytes bytes 243 µs 208 µs 18,784 bytes bytes
load::Payments/GatewayLinkGenerator_php 1 210 µs 211 µs 15,912 bytes bytes 210 µs 211 µs 15,912 bytes bytes
load::Database/QueryException_php 1 209 µs 212 µs 10,264 bytes bytes 209 µs 212 µs 10,264 bytes bytes
Illuminate\Database\MySqlConnection::insert 1 207 µs 103 µs -1,000 bytes bytes 1,151 µs 180 µs 1,488 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 187 µs 242 µs -8,424 bytes bytes 9,144 µs 6,548 µs 63,288 bytes bytes
load::Json/JsonResource_php 1 178 µs 179 µs 26,216 bytes bytes 178 µs 179 µs 26,216 bytes bytes
load::Payments/StatementCreator_php 1 161 µs 163 µs 6,616 bytes bytes 161 µs 163 µs 6,616 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::__construct 3 153 µs 111 µs 4,768 bytes bytes 12,800 µs 6,153 µs 178,808 bytes bytes
load::TargetGroups/CustomerParameters_php 1 150 µs 153 µs 18,752 bytes bytes 150 µs 153 µs 18,752 bytes bytes
load::Query/Expression_php 2 121 µs 123 µs 6,496 bytes bytes 121 µs 123 µs 6,496 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAddit… 3 113 µs 108 µs 4,376 bytes bytes 3,576 µs 1,420 µs 7,072 bytes bytes
Illuminate\Database\MySqlConnection::isUniqueConstraintError 1 110 µs 111 µs 664 bytes bytes 110 µs 111 µs 664 bytes bytes
load::Resources/CollectsResources_php 1 100 µs 100 µs 13,248 bytes bytes 100 µs 100 µs 13,248 bytes bytes
load::Json/ResourceCollection_php 1 98 µs 99 µs 14,240 bytes bytes 98 µs 99 µs 14,240 bytes bytes
load::settings/captive_portal_php 1 95 µs 96 µs 7,416 bytes bytes 95 µs 96 µs 7,416 bytes bytes
load::Payments/PaymentStatementMetadataCast_php 1 93 µs 94 µs 5,440 bytes bytes 93 µs 94 µs 5,440 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 92 µs 91 µs -1,216 bytes bytes 2,037 µs 1,167 µs 6,208 bytes bytes
load::Resources/DelegatesToResource_php 1 85 µs 88 µs 13,960 bytes bytes 85 µs 88 µs 13,960 bytes bytes
load::OrderProcess/UserInfo_php 1 81 µs 85 µs 8,128 bytes bytes 81 µs 85 µs 8,128 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 80 µs 74 µs 3,304 bytes bytes 165 µs 166 µs 9,920 bytes bytes
load::settings/customers_php 1 73 µs 73 µs 4,992 bytes bytes 73 µs 73 µs 4,992 bytes bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 64 µs 64 µs 696 bytes bytes 64 µs 64 µs 696 bytes bytes
load::CustomerQuery/CustomerQueryInterface_php 1 63 µs 64 µs 4,336 bytes bytes 63 µs 64 µs 4,336 bytes bytes
load::Labels/LabelResource_php 1 62 µs 63 µs 3,896 bytes bytes 62 µs 63 µs 3,896 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::newCollection 3 56 µs 55 µs 8,184 bytes bytes 414 µs 418 µs 44,640 bytes bytes
load::Json/AnonymousResourceCollection_php 1 55 µs 57 µs 4,536 bytes bytes 55 µs 57 µs 4,536 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 54 µs 14 µs 760 bytes bytes 81 µs 84 µs 4,432 bytes bytes
load::TargetGroups/TargetGroupRepository_php 1 52 µs 53 µs 4,000 bytes bytes 52 µs 53 µs 4,000 bytes bytes
load::Labels/LabelsRepository_php 1 49 µs 50 µs 3,712 bytes bytes 49 µs 50 µs 3,712 bytes bytes
Illuminate\Database\Query\Builder::leftJoin 2 49 µs 50 µs 3,560 bytes bytes 53 µs 55 µs 4,160 bytes bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAllPa… 3 45 µs 40 µs -3,072 bytes bytes 8,607 µs 4,397 µs 152,432 bytes bytes
Illuminate\Database\Query\Builder::selectRaw 2 44 µs 41 µs -1,984 bytes bytes 167 µs 168 µs 5,112 bytes bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 42 µs 43 µs 792 bytes bytes 42 µs 43 µs 792 bytes bytes
load::settings/finance_php 1 40 µs 41 µs 7,008 bytes bytes 40 µs 41 µs 7,008 bytes bytes
Illuminate\Database\Eloquent\Model::freshTimestamp 1 36 µs 36 µs 1,344 bytes bytes 36 µs 36 µs 1,344 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::compileInsert 1 36 µs 35 µs 2,072 bytes bytes 39 µs 40 µs 2,792 bytes bytes
App\Dto\BaseData::toJson 8 34 µs 29 µs -1,848 bytes bytes 47 µs 46 µs 2,088 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::collectResourc… 3 33 µs 28 µs 760 bytes bytes 70 µs 72 µs 2,312 bytes bytes
url 1 33 µs 32 µs 1,608 bytes bytes 33 µs 32 µs 1,608 bytes bytes
Illuminate\Database\Eloquent\Model::setUpdatedAt 1 32 µs 33 µs 896 bytes bytes 32 µs 33 µs 896 bytes bytes
Illuminate\Database\Eloquent\Model::updateTimestamps 1 32 µs 30 µs 72 bytes bytes 132 µs 133 µs 5,352 bytes bytes
Illuminate\Support\Collection::mapInto 3 31 µs 35 µs 920 bytes bytes 31 µs 35 µs 920 bytes bytes
load::settings/finance_notifications_php 1 30 µs 31 µs 4,448 bytes bytes 30 µs 31 µs 4,448 bytes bytes
Illuminate\Database\Eloquent\Model::insertAndSetId 1 30 µs 30 µs 1,680 bytes bytes 1,285 µs 312 µs 8,480 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::collection 3 29 µs 23 µs 760 bytes bytes 449 µs 449 µs 46,064 bytes bytes
Xhgui\Profiler\Profiler::disable 1 29 µs 26 µs -4,224 bytes bytes 281 µs 244 µs 15,728 bytes bytes
Illuminate\Database\Eloquent\Model::performInsert 1 28 µs 27 µs 368 bytes bytes 1,463 µs 491 µs 17,144 bytes bytes
App\Repositories\Tenant\TargetGroups\TargetGroupRepository::getAv… 3 27 µs 55 µs -4,288 bytes bytes 8,784 µs 4,605 µs 166,896 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildConditio… 2 27 µs 70 µs 3,672 bytes bytes 27 µs 70 µs 3,672 bytes bytes
load::settings/splynx_integration_php 1 24 µs 25 µs 6,512 bytes bytes 24 µs 25 µs 6,512 bytes bytes
load::settings/status_page_notifications_php 1 22 µs 23 µs 5,816 bytes bytes 22 µs 23 µs 5,816 bytes bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 8 21 µs 25 µs 2,592 bytes bytes 68 µs 71 µs 4,680 bytes bytes
Illuminate\Database\Query\Builder::insertGetId 1 21 µs 18 µs 944 bytes bytes 1,255 µs 282 µs 6,800 bytes bytes
load::settings/voucher_limit_notifications_php 1 20 µs 21 µs 6,000 bytes bytes 20 µs 21 µs 6,000 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::__construct 3 20 µs 17 µs 792 bytes bytes 93 µs 96 µs 3,736 bytes bytes
Illuminate\Database\Connection::causedByLostConnection 1 20 µs 22 µs 632 bytes bytes 20 µs 22 µs 632 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 20 µs 21 µs 664 bytes bytes 20 µs 21 µs 664 bytes bytes
load::settings/portal_php 1 19 µs 20 µs 3,160 bytes bytes 19 µs 20 µs 3,160 bytes bytes
Illuminate\Database\MySqlConnection::getLastInsertId 1 18 µs 10 µs 632 bytes bytes 18 µs 10 µs 632 bytes bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 16 µs 14 µs 832 bytes bytes 33 µs 33 µs 4,176 bytes bytes
Illuminate\Database\Eloquent\Model::setCreatedAt 1 16 µs 16 µs 896 bytes bytes 16 µs 16 µs 896 bytes bytes
Illuminate\Database\Query\Processors\MySqlProcessor::processInser… 1 16 µs 23 µs 760 bytes bytes 1,185 µs 213 µs 2,880 bytes bytes
Illuminate\Support\Str::replaceArray 1 13 µs 12 µs 1,592 bytes bytes 16 µs 17 µs 2,208 bytes bytes
App\Dto\BaseData::toArray 8 13 µs 17 µs 3,936 bytes bytes 13 µs 17 µs 3,936 bytes bytes
Illuminate\Http\Resources\Json\AnonymousResourceCollection::__con… 3 12 µs 11 µs 696 bytes bytes 105 µs 107 µs 4,432 bytes bytes
Illuminate\Database\QueryException::__construct 1 10 µs µs 696 bytes bytes 33 µs 33 µs 3,056 bytes bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::App\Service… 3 10 µs 11 µs 696 bytes bytes 10 µs 11 µs 696 bytes bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 8 10 µs 14 µs 5,568 bytes bytes 10 µs 14 µs 5,568 bytes bytes
Illuminate\Database\Eloquent\Model::getAttributesForInsert 1 µs µs 640 bytes bytes 16 µs 17 µs 2,344 bytes bytes
Illuminate\Database\QueryException::formatMessage 1 µs µs 152 bytes bytes 23 µs 24 µs 2,360 bytes bytes
Illuminate\Database\Connection::tryAgainIfCausedByLostConnection 1 µs µs 696 bytes bytes 27 µs 28 µs 1,328 bytes bytes
Illuminate\Http\Resources\Json\ResourceCollection::collects 3 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::Illuminate\Http\Reso… 3 µs µs 664 bytes bytes µs µs 664 bytes bytes
Illuminate\Database\Query\Expression::getValue 2 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Database\Connection::handleQueryException 1 µs µs 696 bytes bytes 33 µs 35 µs 2,024 bytes bytes
Illuminate\Database\Query\Grammars\MySqlGrammar::compileInsert 1 µs µs -512 bytes bytes 45 µs 45 µs 2,280 bytes bytes
Xhgui\Profiler\Profiler::registerShutdownHandler 1 µs µs 1,200 bytes bytes µs µs 1,200 bytes bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 µs µs 696 bytes bytes 25 µs 25 µs 1,360 bytes bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 1 µs µs 664 bytes bytes µs µs 664 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\Database\Query\Grammars\Grammar::getOperators 2 µs µs 600 bytes bytes µs µs 600 bytes bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildOrWhereG… 2 µs µs 2,184 bytes bytes µs µs 2,184 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 49 µs 51 µs 2,976 bytes bytes
Xhgui\Profiler\Profilers\XHProf::disable 1 µs µs 584 bytes bytes µs µs 584 bytes bytes
Illuminate\Http\Resources\Json\JsonResource::__construct 3 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Support\Str::toStringOr 2 µs µs 616 bytes bytes µs µs 616 bytes bytes
App\Services\RedirectFlow\Payments\StatementCreator::__construct 1 µs µs 632 bytes bytes µs µs 632 bytes bytes
Illuminate\Database\Query\Grammars\Grammar::Illuminate\Database\Q… 1 µs µs 720 bytes bytes µs µs 720 bytes bytes
Illuminate\Database\Query\Expression::__construct 2 µ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