Profile data for GET http://swift.powerlynx.app/portal/api/redirect-flow/order-plan/8?hash=fbdedc9e1366493036b43e6950c0e149&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()
34,185 µs
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAvailableForLocation
29,895 µs
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFieldsConfigsRepository::getAllUsableAdditionalFields
6,922 µs
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__construct
3,665 µs
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabelResources
3,489 µs
App\Services\RedirectFlow\Payments\StatementCreator::createPaymentStatement
1,801 µs

Memory Hogs

load::settings/localization_php
94,640 bytes
load::Labels/LabelResource_php
85,816 bytes
load::Resources/ConditionallyLoadsAttributes_php
63,392 bytes
load::CustomerQuery/CustomerQueryTrait_php
53,072 bytes
App\Services\AdditionalFields\AdditionalFields::getAdditionalFieldsConfigsModel
48,528 bytes
load::Json/JsonResource_php
26,216 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 34,185 µs 15,683 µs -80,448 bytes 0 bytes 89,815 µs 42,605 µs 652,120 bytes 0 bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::gatewayIsAv… 1 29,895 µs 10,425 µs 15,408 bytes 0 bytes 29,904 µs 10,434 µs 16,104 bytes 0 bytes
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFields… 6 6,922 µs 2,719 µs 5,672 bytes 0 bytes 7,077 µs 2,885 µs 8,272 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::__constr… 1 3,665 µs 2,667 µs 2,528 bytes 0 bytes 3,682 µs 2,684 µs 3,952 bytes 0 bytes
App\Repositories\Tenant\Labels\LabelsRepository::getCustomerLabel… 3 3,489 µs 1,334 µs -25,080 bytes 0 bytes 4,592 µs 2,446 µs 211,176 bytes 0 bytes
App\Services\RedirectFlow\Payments\StatementCreator::createPaymen… 1 1,801 µs 1,300 µs 19,136 bytes 0 bytes 2,167 µs 1,786 µs 58,664 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::generate… 1 1,762 µs 769 µs -26,048 bytes 0 bytes 1,924 µs 933 µs 6,432 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getPaymentGate… 1 1,176 µs 667 µs 2,912 bytes 0 bytes 1,176 µs 667 µs 2,912 bytes 0 bytes
App\Services\RedirectFlow\TrialSessions\TrialSessionsMaker::isTri… 1 856 µs 359 µs 1,056 bytes 0 bytes 856 µs 359 µs 1,056 bytes 0 bytes
load::settings/localization_php 3 370 µs 374 µs 94,640 bytes 0 bytes 370 µs 374 µs 94,640 bytes 0 bytes
load::Resources/ConditionallyLoadsAttributes_php 1 296 µs 298 µs 63,392 bytes 0 bytes 296 µs 298 µs 63,392 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::build 3 260 µs 257 µs 6,744 bytes 0 bytes 419 µs 422 µs 27,632 bytes 0 bytes
load::Payments/GatewayLinkGenerator_php 1 255 µs 257 µs 16,088 bytes 0 bytes 255 µs 257 µs 16,088 bytes 0 bytes
load::CustomerQuery/CustomerQueryTrait_php 1 236 µs 237 µs 53,072 bytes 0 bytes 236 µs 237 µs 53,072 bytes 0 bytes
load::Payments/OrderProcessor_php 1 232 µs 577 µs 16,944 bytes 0 bytes 232 µs 577 µs 16,944 bytes 0 bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getBaseP… 3 225 µs 225 µs 15,272 bytes 0 bytes 4,936 µs 2,790 µs 236,112 bytes 0 bytes
App\Services\AdditionalFields\AdditionalFields::getAdditionalFiel… 6 225 µs 221 µs 48,528 bytes 0 bytes 497 µs 503 µs 74,832 bytes 0 bytes
load::Json/JsonResource_php 1 220 µs 221 µs 26,216 bytes 0 bytes 220 µs 221 µs 26,216 bytes 0 bytes
load::src/ProfilingData_php 1 211 µs 213 µs 18,784 bytes 0 bytes 211 µs 213 µs 18,784 bytes 0 bytes
load::TargetGroups/TargetGroupsQueryBuilder_php 1 188 µs 189 µs 18,328 bytes 0 bytes 188 µs 189 µs 18,328 bytes 0 bytes
load::Payment/PaymentStatement_php 1 176 µs 288 µs 23,048 bytes 0 bytes 176 µs 288 µs 23,048 bytes 0 bytes
load::AdditionalFields/AdditionalFieldsConfigsRepository_php 1 127 µs 127 µs 25,048 bytes 0 bytes 127 µs 127 µs 25,048 bytes 0 bytes
load::Database/QueryException_php 1 123 µs 124 µs 10,184 bytes 0 bytes 123 µs 124 µs 10,184 bytes 0 bytes
load::Payments/StatementCreator_php 1 119 µs 130 µs 6,712 bytes 0 bytes 119 µs 130 µs 6,712 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::getRedirectLin… 1 118 µs 227 µs -8,504 bytes 0 bytes 9,548 µs 6,790 µs 87,944 bytes 0 bytes
load::AdditionalFields/BaseAdditionalFieldConfig_php 1 114 µs 116 µs 11,328 bytes 0 bytes 114 µs 116 µs 11,328 bytes 0 bytes
App\Models\Tenant\Config\AdditionalFields\BaseAdditionalFieldConf… 18 113 µs 96 µs 1,488 bytes 0 bytes 171 µs 183 µs 2,184 bytes 0 bytes
load::AdditionalFields/CustomerAdditionalFieldConfig_php 1 106 µs 107 µs 12,424 bytes 0 bytes 106 µs 107 µs 12,424 bytes 0 bytes
load::TargetGroups/CustomerParameters_php 1 97 µs 98 µs 18,856 bytes 0 bytes 97 µs 98 µs 18,856 bytes 0 bytes
load::Resources/DelegatesToResource_php 1 89 µs 90 µs 13,960 bytes 0 bytes 89 µs 90 µs 13,960 bytes 0 bytes
load::AdditionalFields/AdditionalFieldTypes_php 1 80 µs 80 µs 5,952 bytes 0 bytes 80 µs 80 µs 5,952 bytes 0 bytes
load::Json/ResourceCollection_php 1 80 µs 81 µs 14,240 bytes 0 bytes 80 µs 81 µs 14,240 bytes 0 bytes
load::Resources/CollectsResources_php 1 79 µs 80 µs 13,248 bytes 0 bytes 79 µs 80 µs 13,248 bytes 0 bytes
load::settings/customers_php 1 78 µs 78 µs 4,992 bytes 0 bytes 78 µs 78 µs 4,992 bytes 0 bytes
load::Labels/LabelResource_php 1 76 µs 77 µs 85,816 bytes 0 bytes 76 µs 77 µs 85,816 bytes 0 bytes
App\Repositories\Tenant\Configs\AdditionalFields\AdditionalFields… 6 76 µs 67 µs 144 bytes 0 bytes 669 µs 671 µs 85,496 bytes 0 bytes
Illuminate\Database\MySqlConnection::isUniqueConstraintError 1 73 µs 73 µs 600 bytes 0 bytes 73 µs 73 µs 600 bytes 0 bytes
load::Payments/PaymentStatementMetadataCast_php 1 72 µs 73 µs 5,440 bytes 0 bytes 72 µs 73 µs 5,440 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getPayLi… 1 71 µs 68 µs -1,216 bytes 0 bytes 2,029 µs 1,037 µs 7,488 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::__construct 3 67 µs 59 µs 1,736 bytes 0 bytes 13,101 µs 6,755 µs 363,800 bytes 0 bytes
App\Models\Tenant\Config\AdditionalFields\BaseAdditionalFieldConf… 42 65 µs 100 µs 1,392 bytes 0 bytes 65 µs 100 µs 1,392 bytes 0 bytes
load::Json/AnonymousResourceCollection_php 1 61 µs 61 µs 4,536 bytes 0 bytes 61 µs 61 µs 4,536 bytes 0 bytes
load::settings/captive_portal_php 1 60 µs 61 µs 7,416 bytes 0 bytes 60 µs 61 µs 7,416 bytes 0 bytes
Illuminate\Database\Query\Builder::leftJoin 2 51 µs 51 µs 3,560 bytes 0 bytes 53 µs 55 µs 4,160 bytes 0 bytes
Illuminate\Database\Connection::causedByLostConnection 1 51 µs 52 µs 632 bytes 0 bytes 51 µs 52 µs 632 bytes 0 bytes
Illuminate\Http\Resources\Json\JsonResource::newCollection 3 50 µs 50 µs 8,184 bytes 0 bytes 367 µs 371 µs 44,640 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 49 µs 47 µs 3,304 bytes 0 bytes 96 µs 98 µs 15,552 bytes 0 bytes
Xhgui\Profiler\Profiler::disable 1 49 µs 46 µs -4,224 bytes 0 bytes 268 µs 268 µs 15,728 bytes 0 bytes
load::AdditionalFields/AdditionalFields_php 1 47 µs 47 µs 6,712 bytes 0 bytes 47 µs 47 µs 6,712 bytes 0 bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAddit… 3 41 µs 40 µs -7,720 bytes 0 bytes 4,224 µs 2,270 µs 104,240 bytes 0 bytes
load::TargetGroups/TargetGroupRepository_php 1 40 µs 41 µs 3,360 bytes 0 bytes 40 µs 41 µs 3,360 bytes 0 bytes
load::Labels/LabelsRepository_php 1 39 µs 39 µs 3,712 bytes 0 bytes 39 µs 39 µs 3,712 bytes 0 bytes
App\Models\Tenant\Finance\Payment\PaymentGateway::getSaveKey 1 38 µs 38 µs 696 bytes 0 bytes 38 µs 38 µs 696 bytes 0 bytes
load::Facades/AdditionalFields_php 1 36 µs 37 µs 4,880 bytes 0 bytes 36 µs 37 µs 4,880 bytes 0 bytes
load::settings/finance_php 1 33 µs 33 µs 7,008 bytes 0 bytes 33 µs 33 µs 7,008 bytes 0 bytes
load::CustomerQuery/CustomerQueryInterface_php 1 33 µs 34 µs 4,256 bytes 0 bytes 33 µs 34 µs 4,256 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildConditio… 2 33 µs 37 µs 9,304 bytes 0 bytes 33 µs 37 µs 9,304 bytes 0 bytes
App\Services\PaymentGateways\GlobalGateway::needAskAdditionalInfo… 1 33 µs 34 µs 680 bytes 0 bytes 33 µs 34 µs 680 bytes 0 bytes
App\Dto\BaseData::toJson 8 33 µs 33 µs -1,848 bytes 0 bytes 47 µs 51 µs 2,088 bytes 0 bytes
App\Casts\Payments\PaymentStatementMetadataCast::set 8 33 µs 31 µs 1,328 bytes 0 bytes 80 µs 82 µs 3,416 bytes 0 bytes
Illuminate\Http\Resources\Json\ResourceCollection::collectResourc… 3 30 µs 27 µs 760 bytes 0 bytes 63 µs 64 µs 2,312 bytes 0 bytes
Illuminate\Http\Resources\Json\JsonResource::collection 3 30 µs 20 µs 760 bytes 0 bytes 402 µs 400 µs 46,064 bytes 0 bytes
url 1 30 µs 31 µs 1,608 bytes 0 bytes 30 µs 31 µs 1,608 bytes 0 bytes
Illuminate\Support\Collection::mapInto 3 26 µs 29 µs 920 bytes 0 bytes 26 µs 29 µs 920 bytes 0 bytes
App\Repositories\Tenant\TargetGroups\CustomerParameters::getAllPa… 3 26 µs 24 µs -3,072 bytes 0 bytes 9,186 µs 5,084 µs 337,280 bytes 0 bytes
App\Models\Tenant\Config\AdditionalFields\BaseAdditionalFieldConf… 6 24 µs 23 µs 1,176 bytes 0 bytes 31 µs 36 µs 1,872 bytes 0 bytes
App\Repositories\Tenant\TargetGroups\TargetGroupRepository::getAv… 3 21 µs 20 µs -4,288 bytes 0 bytes 9,304 µs 5,202 µs 351,848 bytes 0 bytes
App\Models\Tenant\Labels\Label::getQualifiedDeletedAtColumn 3 20 µs 26 µs 808 bytes 0 bytes 20 µs 26 µs 808 bytes 0 bytes
load::settings/finance_notifications_php 1 19 µs 19 µs 4,448 bytes 0 bytes 19 µs 19 µs 4,448 bytes 0 bytes
load::settings/status_page_notifications_php 1 19 µs 19 µs 5,816 bytes 0 bytes 19 µs 19 µs 5,816 bytes 0 bytes
load::settings/splynx_integration_php 1 18 µs 20 µs 6,512 bytes 0 bytes 18 µs 20 µs 6,512 bytes 0 bytes
load::settings/voucher_limit_notifications_php 1 17 µs 18 µs 6,000 bytes 0 bytes 17 µs 18 µs 6,000 bytes 0 bytes
Illuminate\Http\Resources\Json\ResourceCollection::__construct 3 17 µs 18 µs 792 bytes 0 bytes 84 µs 87 µs 3,736 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::loadStatementI… 1 16 µs 17 µs 664 bytes 0 bytes 16 µs 17 µs 664 bytes 0 bytes
App\Services\PaymentGateways\GlobalGateway::createEncrypter 1 15 µs 14 µs 792 bytes 0 bytes 17 µs 17 µs 1,424 bytes 0 bytes
App\Dto\BaseData::toArray 8 14 µs 18 µs 3,936 bytes 0 bytes 14 µs 18 µs 3,936 bytes 0 bytes
load::settings/portal_php 1 13 µs 14 µs 3,160 bytes 0 bytes 13 µs 14 µs 3,160 bytes 0 bytes
Illuminate\Http\Resources\Json\AnonymousResourceCollection::__con… 3 13 µs 12 µs 696 bytes 0 bytes 97 µs 99 µs 4,432 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::App\Services\… 2 11 µs 9 µs 760 bytes 0 bytes 44 µs 46 µs 10,064 bytes 0 bytes
Illuminate\Database\Eloquent\Model::setClassCastableAttribute 1 11 µs 9 µs 832 bytes 0 bytes 26 µs 26 µs 4,176 bytes 0 bytes
Illuminate\Database\Query\Builder::selectRaw 2 10 µs 12 µs 1,176 bytes 0 bytes 10 µs 12 µs 1,176 bytes 0 bytes
App\Services\PaymentGateways\PaymentGatewaysProvider::App\Service… 3 9 µs 9 µs 696 bytes 0 bytes 9 µs 9 µs 696 bytes 0 bytes
Illuminate\Database\Eloquent\Model::normalizeCastClassResponse 8 9 µs 15 µs 4,304 bytes 0 bytes 9 µs 15 µs 4,304 bytes 0 bytes
Illuminate\Routing\UrlGenerator::Stancl\Tenancy\Bootstrappers\{cl… 1 8 µs 8 µs 584 bytes 0 bytes 8 µs 8 µs 584 bytes 0 bytes
Illuminate\Support\Str::replaceArray 1 8 µs 8 µs 1,592 bytes 0 bytes 11 µs 11 µs 2,208 bytes 0 bytes
Illuminate\Http\Resources\Json\ResourceCollection::collects 3 7 µs 8 µs 632 bytes 0 bytes 7 µs 8 µs 632 bytes 0 bytes
App\Providers\AppServiceProvider::App\Providers\{closure} 1 7 µs 8 µs -1,736 bytes 0 bytes 54 µs 55 µs 4,976 bytes 0 bytes
App\Models\Tenant\Finance\Payment\PaymentStatement::initializeSof… 1 7 µs 5 µs 728 bytes 0 bytes 12 µs 12 µs 1,392 bytes 0 bytes
App\Facades\AdditionalFields::getFacadeAccessor 6 6 µs 9 µs 664 bytes 0 bytes 6 µs 9 µs 664 bytes 0 bytes
App\Models\Tenant\Finance\Payment\PaymentStatement::bootSoftDelet… 1 6 µs 7 µs 1,096 bytes 0 bytes 6 µs 7 µs 1,096 bytes 0 bytes
Illuminate\Http\Resources\Json\JsonResource::Illuminate\Http\Reso… 3 5 µs 9 µs 664 bytes 0 bytes 5 µs 9 µs 664 bytes 0 bytes
App\Models\Tenant\Config\AdditionalFields\BaseAdditionalFieldConf… 1 5 µs 6 µs 1,096 bytes 0 bytes 5 µs 6 µs 1,096 bytes 0 bytes
Illuminate\Database\QueryException::__construct 1 5 µs 5 µs 632 bytes 0 bytes 20 µs 21 µs 2,992 bytes 0 bytes
Illuminate\Database\Connection::tryAgainIfCausedByLostConnection 1 5 µs 5 µs 696 bytes 0 bytes 56 µs 57 µs 1,328 bytes 0 bytes
Illuminate\Database\Connection::handleQueryException 1 5 µs 5 µs 632 bytes 0 bytes 61 µs 62 µs 1,960 bytes 0 bytes
App\Models\Tenant\Finance\Payment\PaymentStatement::getDeletedAtC… 2 5 µs 7 µs 664 bytes 0 bytes 5 µs 7 µs 664 bytes 0 bytes
Xhgui\Profiler\Profiler::registerShutdownHandler 1 4 µs 5 µs 1,200 bytes 0 bytes 4 µs 5 µs 1,200 bytes 0 bytes
Illuminate\Http\Resources\Json\JsonResource::__construct 3 4 µs 5 µs 632 bytes 0 bytes 4 µs 5 µs 632 bytes 0 bytes
Illuminate\Database\QueryException::formatMessage 1 4 µs 5 µs 152 bytes 0 bytes 15 µs 16 µs 2,360 bytes 0 bytes
App\Services\RedirectFlow\Payments\OrderProcessor::__construct 1 4 µs 3 µs 632 bytes 0 bytes 20 µs 20 µs 1,296 bytes 0 bytes
App\Services\RedirectFlow\Payments\GatewayLinkGenerator::getGatew… 1 4 µs 5 µs 664 bytes 0 bytes 4 µs 5 µs 664 bytes 0 bytes
Xhgui\Profiler\ProfilingData::__construct 1 4 µs 5 µs 584 bytes 0 bytes 4 µs 5 µs 584 bytes 0 bytes
Xhgui\Profiler\Profilers\XHProf::disable 1 4 µs 4 µs 584 bytes 0 bytes 4 µs 4 µs 584 bytes 0 bytes
App\Services\TargetGroups\TargetGroupsQueryBuilder::buildOrWhereG… 2 3 µs 5 µs 2,184 bytes 0 bytes 3 µs 5 µs 2,184 bytes 0 bytes
Illuminate\Support\Str::toStringOr 2 3 µs 3 µs 616 bytes 0 bytes 3 µs 3 µs 616 bytes 0 bytes
Illuminate\Database\Query\Grammars\Grammar::getOperators 2 2 µs 4 µs 600 bytes 0 bytes 2 µs 4 µs 600 bytes 0 bytes
App\Services\RedirectFlow\Payments\StatementCreator::__construct 1 2 µs 2 µs 632 bytes 0 bytes 2 µs 2 µs 632 bytes 0 bytes
App\Services\PaymentGateways\GlobalGateway::getEncryptionKey 1 2 µs 3 µs 632 bytes 0 bytes 2 µs 3 µs 632 bytes 0 bytes