XHProf strlen Profile

XHProf Profile

SymbolCountWall Time%
Metrics for this Call
strlen4,087,8941,295,364 us100.0%
Parent Calls
ArcanistConfigurationManager::getUserConfigurationFileLocation10 us
Filesystem::walkToRoot373 us
FileList::contains70 us
ArcanistWorkingCopyIdentity::readLocalArcConfig10 us
Filesystem::resolvePath8639 us
FileFinder::getFiles10 us
PhutilURI::setPath438295 us
PhutilURI::__toString1,607599 us
xsprintf24,8155,939 us
LinesOfALarge::setDelimiter55 us
LinesOfALarge::next5,638272 us
ExecFuture::readStdout35813 us
LinesOfALargeExecFuture::readMore35053 us
ExecFuture::isReady2,6121,499 us
ExecFuture::readAndDiscard6,916542 us
PhutilJSON::encodeFormattedObject40 us
PhutilJSON::encodeFormattedObject@180 us
PhabricatorUIConfigOptions::getOptions120 us
PhabricatorLiskDAO::getStorageNamespace9,6924,381 us
PhutilOpaqueEnvelope::mask3,0061,327 us
PhabricatorLiskDAO::getTableName12,2487,070 us
xsprintf_query56,324125,977 us
PhabricatorEnv::initializeCommonEnvironment10 us
PhutilClassMapQuery::loadMap132115 us
Filesystem::readRandomBytes1,002448 us
xsprintf_command899989 us
FileFinder::find34 us
Filesystem::readablePath7,696745 us
PhutilTestCase::endCoverage2,008,969954,987 us
ArcanistUnitConsoleRenderer::renderUnitResult28746 us
ArcanistDiffParser::parseDiff12665 us
phutil_split_lines3033,588 us
ArcanistDiffParser::nextNonemptyLine6819 us
ArcanistDiffParser::parseChangeset2,777450 us
PhabricatorApplicationQuery::loadPage190282 us
ArcanistDiffHunk::getChangedLines2,705261 us
DifferentialChangesetParser::detectCopiedCode1,419256 us
DifferentialHunk::makeContent6427 us
DiffusionRequest::generateDiffusionURI4820 us
DiffusionRequest::parseRequestBlob2714 us
HeraldField::getFieldConstant422 us
AlmanacNames::validateServiceOrDeviceName28100 us
AphrontRedirectResponse::getURIForRedirect1414 us
PhabricatorEnv::isValidLocalURIForLink1617 us
PhabricatorEnv::requireValidRemoteURIForLink6167 us
PhutilLexer::getTokens2,5311,996 us
PhutilSimpleOptions::parse11 us
PhutilSimpleOptions::normalizeKey11 us
PhabricatorUser::validateUsername133309 us
PhabricatorUserEmail::isValidAddress295489 us
PhabricatorQuery::flattenSubclause4,9861,458 us
PhabricatorUser::save119170 us
PhabricatorTypeaheadDatasource::tokenizeString14235 us
PhabricatorApplicationTransactionEditor::validateIsEmptyTextField4052 us
PhabricatorPolicyQuery::isObjectPolicy1,8483,290 us
PhabricatorPeopleQuery::buildWhereClauseParts7285 us
PhabricatorFile::writeToEngine3032 us
PhabricatorFile::buildFromFileData176 us
PhutilRemarkupEngine::isEmptyBlock205 us
PhutilRemarkupDefaultBlockRule::markupText202,828 us
PhabricatorFile::getCDNURI1818 us
PhabricatorApplicationTransaction::hasComment45 us
xsprintf@1468120 us
xsprintf_command@1468611 us
DifferentialCommitMessageParser::parseCorpus131 us
PhutilUTF8StringTruncator::setTerminator2932 us
phutil_utf8v506275 us
PhutilUTF8StringTruncator::truncateString27736 us
DifferentialChangesetParser::getHighlightFuture2823 us
DifferentialChangesetParser::calculateGapsMaskAndDepths1524 us
ArcanistDiffUtils::generateIntralineDiff4025 us
ArcanistDiffUtils::computeIntralineEdits169 us
ArcanistDiffUtils::applyIntralineDiff3234 us
PhutilRope::append105 us
PhutilChannel::isReadBufferEmpty55 us
PhutilChannel::update2912 us
phutil_fwrite_nonblocking_stream55 us
PhutilRope::removeBytesFromHead55 us
PhutilProtocolChannel::read1414 us
DiffusionMercurialWireClientSSHProtocolChannel::readProtocolBytes45 us
DiffusionMercurialWireClientSSHProtocolChannel::decodeStream40 us
DiffusionMercurialWireClientSSHProtocolChannel::newDataMessage33 us
DiffusionSubversionWireProtocol::writeData5215 us
DiffusionSubversionWireProtocol::serializeStruct11 us
PhabricatorCaches::maybeDeflateData1936 us
HarbormasterBuildPlanQuery::buildWhereClauseParts2022 us
PhabricatorGlobalLock::newLock75 us
HarbormasterBuildStep::getName25 us
HeraldObjectTranscript::truncateValue52 us
HeraldObjectTranscript::truncateValue@141 us
PhabricatorLiskDAO::chunkSQL13965 us
ManiphestTaskStatus::isValidStatusConstant4070 us
ManiphestTaskQuery::buildFullTextWhereClause3862 us
PhabricatorQuery::flattenSubclause@13831 us
PhabricatorCursorPagedPolicyAwareQuery::isCustomFieldOrderKey2438 us
AphrontRequest::getPrefixedCookieName716 us
PhabricatorAuthStartController::handleRequest712 us
PHUIInfoView::render712 us
PhabricatorStandardPageView::getTitle1872 us
PhabricatorBarePageView::getHead919 us
DarkConsoleCore::sanitizeForJSON@3450828 us
DarkConsoleCore::sanitizeForJSON@21,098888 us
DarkConsoleCore::sanitizeForJSON@15497 us
DarkConsoleCore::sanitizeForJSON@45467 us
PhabricatorUser::getFullName3441 us
PhutilDocblockParser::parse1,786124 us
PhabricatorEnv::requireValidRemoteURIForFetch1626 us
PhabricatorPasswordHasher::getPasswordHashForStorage11 us
PhabricatorMailReceiver::stripMailboxPrefix140119 us
PhabricatorMetaMTAEmailBodyParser::stripCommands21410 us
PhabricatorMetaMTAMailBody::addRawSection22 us
PhabricatorMetaMTAMail::sendNow77 us
PhabricatorMetaMTAReceivedMail::sendExceptionMail89 us
PhabricatorMailReceiver::loadSender11 us
PhutilQueryStringParser::parseQueryStringToPairList6122 us
PhutilQueryStringParser::parseQueryString390 us
PhutilContextFreeGrammar::applyRules@3680239 us
PhutilContextFreeGrammar::applyRules@2480161 us
PhutilContextFreeGrammar::applyRules@1319104 us
PhutilContextFreeGrammar::applyRules15141 us
PhabricatorOwnersPackageTestCase::testFindLongestPathsPerPackage33 us
array_map30 us
PhabricatorPasswordHasher::getAllHashers66 us
PhabricatorLocalDiskFileStorageEngine::canWriteFiles44 us
PhabricatorS3FileStorageEngine::canWriteFiles43 us
PhabricatorRepository::getSubversionPathURI14187 us
PhabricatorRepository::getSubversionBaseURI2025 us
PassphraseCredentialQuery::buildWhereClauseParts22 us
PhabricatorSpacesNamespaceEditor::getCustomTransactionOldValue711 us
PhabricatorTOTPAuthFactor::base32Decode40 us
phutil_parse_bytes1210 us
PhabricatorRepositoryQuery::buildWhereClauseParts5832 us
DiffusionLowLevelGitRefQuery::executeQuery63 us
PhabricatorGitGraphStream::parseUntil80 us
PhabricatorRepositoryGitCommitChangeParserWorker::parseCommitChanges223 us
PhabricatorMercurialGraphStream::parseUntil81 us
PhabricatorMercurialGraphStream::parseParents83 us
ArcanistMercurialParser::parseMercurialStatusDetails72 us
ArcanistMercurialParser::parseMercurialLog71 us
CommandException::summarize82,190 us
PhabricatorRepositorySvnCommitChangeParserWorker::lookupPathFileTypes1217 us
PhabricatorRepositorySvnCommitChangeParserWorker::parseCommitChanges2823 us
Filesystem::remove167 us
ArcanistUnitTestResult::mergeCoverage1,918,040167,126 us
Child Calls
PhutilSafeHTML::__toString485,854 us0.5%
PhutilCommandString::__toString22,177 us0.2%