XHProf Profile
Symbol | Count | Wall Time (Inclusive) | % | Wall Time (Exclusive) | % |
---|---|---|---|---|---|
Total | 19,598,653 | 118,830,110 us | 100.0% | 118,830,110 us | 100.0% |
main() | 1 | 118,830,110 us | 100.0% | 428 us | 0.0% |
ArcanistLintWorkflow::run | 1 | 118,781,254 us | 100.0% | 22,805 us | 0.0% |
ArcanistLintEngine::run | 1 | 116,164,221 us | 97.8% | 21,341 us | 0.0% |
ArcanistLintEngine::executeLinters | 1 | 114,413,218 us | 96.3% | 252 us | 0.0% |
ArcanistLintEngine::executeLintersOnChunk | 19 | 114,412,779 us | 96.3% | 53,256 us | 0.0% |
ArcanistLintEngine::executeDidLintOnPaths | 167 | 95,028,577 us | 80.0% | 1,456 us | 0.0% |
ArcanistFutureLinter::didLintPaths | 22 | 95,018,769 us | 80.0% | 12,219 us | 0.0% |
call_user_func | 12,040 | 69,949,421 us | 58.9% | 121,742 us | 0.1% |
ArcanistXHPASTLinter::resolveFuture | 215 | 69,153,380 us | 58.2% | 132,150 us | 0.1% |
ArcanistPhutilXHPASTLinter::resolveFuture | 215 | 24,823,083 us | 20.9% | 13,772 us | 0.0% |
ArcanistBaseXHPASTLinter::getXHPASTTreeForPath | 645 | 23,527,867 us | 19.8% | 20,321 us | 0.0% |
AASTNode::getTokens | 311,079 | 19,130,515 us | 16.1% | 17,985,880 us | 15.1% |
XHPASTTree::newFromDataAndResolvedExecFuture | 215 | 14,029,488 us | 11.8% | 176,687 us | 0.1% |
XHPASTTree::__construct | 215 | 12,309,718 us | 10.4% | 6,459 us | 0.0% |
AASTTree::__construct | 215 | 12,258,868 us | 10.3% | 3,582,072 us | 3.0% |
ArcanistLintEngine::executeLinterOnPaths | 167 | 11,492,418 us | 9.7% | 23,711 us | 0.0% |
ArcanistXHPASTLinter::lintPHPCompatibility | 215 | 10,379,118 us | 8.7% | 1,239,805 us | 1.0% |
json_decode | 456 | 9,581,208 us | 8.1% | 9,581,208 us | 8.1% |
phutil_json_decode | 434 | 9,498,749 us | 8.0% | 8,824 us | 0.0% |
ArcanistXHPASTLinter::lintUnnecessarySemicolons | 215 | 9,118,417 us | 7.7% | 157,474 us | 0.1% |
AASTNode::getSemanticString | 21,894 | 8,903,991 us | 7.5% | 2,489,405 us | 2.1% |
ArcanistXHPASTLinter::lintBraceFormatting | 215 | 8,329,035 us | 7.0% | 1,021,236 us | 0.9% |
ArcanistLinter::getPaths | 210 | 7,913,895 us | 6.7% | 6,272 us | 0.0% |
ArcanistLinter::filterPaths | 210 | 7,893,795 us | 6.6% | 1,080,808 us | 0.9% |
AASTNode::getConcreteString | 242,895 | 6,193,965 us | 5.2% | 1,546,664 us | 1.3% |
ArcanistXHPASTLinter::lintEmptyBlockStatements | 215 | 6,162,782 us | 5.2% | 1,436,795 us | 1.2% |
ArcanistXHPASTLinter::lintUndeclaredVariables | 215 | 5,964,252 us | 5.0% | 1,027,128 us | 0.9% |
AASTNode::buildSelectCache | 166,360 | 5,774,216 us | 4.9% | 6,227,516 us | 5.2% |
ArcanistSpellingLinter::lintPath | 579 | 5,700,399 us | 4.8% | 584,556 us | 0.5% |
AASTNode::selectDescendantsOfTypes | 65,524 | 5,660,592 us | 4.8% | 1,801,004 us | 1.5% |
AASTNode::selectDescendantsOfType | 61,454 | 5,437,176 us | 4.6% | 142,574 us | 0.1% |
ArcanistSpellingLinter::checkExactWord | 339,873 | 5,079,903 us | 4.3% | 1,474,957 us | 1.2% |
ArcanistLintEngine::getFilePathOnDisk | 255,557 | 4,662,066 us | 3.9% | 1,035,782 us | 0.9% |
ArcanistXHPASTLinter::lintNamingConventions | 215 | 4,187,259 us | 3.5% | 2,355,544 us | 2.0% |
ArcanistPhutilLibraryLinter::willLintPaths | 11 | 3,957,396 us | 3.3% | 231,742 us | 0.2% |
AASTNodeList::newFromTreeAndNodes | 72,143 | 3,749,580 us | 3.2% | 818,147 us | 0.7% |
Filesystem::resolvePath | 263,722 | 3,596,004 us | 3.0% | 1,590,277 us | 1.3% |
AASTTree::buildTree | 87,258 | 3,594,870 us | 3.0% | 3,535,045 us | 3.0% |
PhutilLibraryMapBuilder::buildFileSymbolMap | 22 | 3,387,087 us | 2.9% | 211 us | 0.0% |
PhutilLibraryMapBuilder::analyzeLibrary | 22 | 3,386,876 us | 2.9% | 1,266,089 us | 1.1% |
XHPASTTree::newToken | 237,815 | 3,358,934 us | 2.8% | 2,949,768 us | 2.5% |
mpull | 38,533 | 3,053,382 us | 2.6% | 2,517,007 us | 2.1% |
AASTNode::buildTokenCache | 215 | 2,924,503 us | 2.5% | 907,144 us | 0.8% |
preg_match_all | 351,268 | 2,846,980 us | 2.4% | 2,846,980 us | 2.4% |
assert_instances_of | 72,185 | 2,808,608 us | 2.4% | 2,762,588 us | 2.3% |
ArcanistXHPASTLinter::lintSpaceAfterControlStatementKeywords | 215 | 2,673,041 us | 2.2% | 1,283,949 us | 1.1% |
ArcanistLintEngine::pathExists | 92,271 | 2,668,966 us | 2.2% | 462,110 us | 0.4% |
AASTNode::getChildByIndex | 182,510 | 2,117,324 us | 1.8% | 2,117,324 us | 1.8% |
ExecFuture::isReady | 4,269 | 2,011,671 us | 1.7% | 91,285 us | 0.1% |
ArcanistXHPASTLinter::lintStrstrUsedForCheck | 215 | 1,951,600 us | 1.6% | 79,702 us | 0.1% |
ArcanistLintEngine::isDirectory | 80,947 | 1,945,860 us | 1.6% | 336,381 us | 0.3% |
ArcanistXHPASTLinter::lintReusedIteratorReferences | 215 | 1,912,822 us | 1.6% | 397,427 us | 0.3% |
XHPASTToken::getTypeName | 765,105 | 1,775,745 us | 1.5% | 1,180,905 us | 1.0% |
ArcanistLintEngine::isSymbolicLink | 80,563 | 1,641,239 us | 1.4% | 254,630 us | 0.2% |
ArcanistConsoleLintRenderer::renderLintResult | 596 | 1,623,108 us | 1.4% | 102,172 us | 0.1% |
ArcanistConfigurationDrivenLintEngine::buildLinters | 1 | 1,599,288 us | 1.3% | 594 us | 0.0% |
head | 17,071 | 1,592,185 us | 1.3% | 1,581,292 us | 1.3% |
FutureIterator::updateWorkingSet | 882 | 1,576,244 us | 1.3% | 18,544 us | 0.0% |
realpath | 263,724 | 1,531,957 us | 1.3% | 1,531,957 us | 1.3% |
ArcanistConfigurationDrivenLintEngine::matchPaths | 11 | 1,526,863 us | 1.3% | 102,828 us | 0.1% |
ArcanistXHPASTLinter::lintSpaceAroundBinaryOperators | 215 | 1,494,902 us | 1.3% | 128,968 us | 0.1% |
XHPASTTree::newNode | 166,360 | 1,494,452 us | 1.3% | 1,125,809 us | 0.9% |
XHPASTToken::isComment | 974,891 | 1,482,840 us | 1.2% | 1,482,838 us | 1.2% |
ArcanistXHPASTLinter::lintPHPTagUse | 215 | 1,477,080 us | 1.2% | 290,621 us | 0.2% |
PhutilConsole::writeTextMessage | 35,048 | 1,467,096 us | 1.2% | 199,614 us | 0.2% |
proc_open | 262 | 1,431,069 us | 1.2% | 1,431,069 us | 1.2% |
call_user_func_array | 61,796 | 1,427,396 us | 1.2% | 452,858 us | 0.4% |
ArcanistXHPASTLinter::getConcreteVariableString | 58,123 | 1,391,997 us | 1.2% | 248,334 us | 0.2% |
ArcanistXHPASTLinter::lintClosingCallParen | 215 | 1,349,223 us | 1.1% | 206,839 us | 0.2% |
ArcanistXHPASTLinter::lintStrings | 215 | 1,315,160 us | 1.1% | 401,925 us | 0.3% |
pht | 56,361 | 1,286,476 us | 1.1% | 277,266 us | 0.2% |
ArcanistXHPASTLinter::lintKeywordCasing | 215 | 1,253,681 us | 1.1% | 139,309 us | 0.1% |
PhutilConsole::writeMessage | 35,048 | 1,251,655 us | 1.1% | 156,977 us | 0.1% |
ArcanistXHPASTLinter::lintParenthesesShouldHugExpressions | 215 | 1,245,678 us | 1.0% | 282,545 us | 0.2% |
ArcanistXHPASTLinter::lintArraySeparator | 215 | 1,228,727 us | 1.0% | 31,732 us | 0.0% |
AASTNode::getChildOfType | 39,464 | 1,226,478 us | 1.0% | 177,841 us | 0.1% |
AASTToken::getNextToken | 226,008 | 1,162,350 us | 1.0% | 877,410 us | 0.7% |
ArcanistXHPASTLinter::lintImplicitFallthrough | 215 | 1,049,445 us | 0.9% | 115,741 us | 0.1% |
idx | 518,338 | 1,031,360 us | 0.9% | 998,537 us | 0.8% |
AASTNodeList::valid | 395,745 | 1,030,432 us | 0.9% | 839,209 us | 0.7% |
PhutilLibraryMapBuilder::loadSourceFileMap | 22 | 1,010,810 us | 0.9% | 52,004 us | 0.0% |
range | 310,840 | 1,005,851 us | 0.8% | 1,005,851 us | 0.8% |
FutureIterator::next | 452 | 1,001,618 us | 0.8% | 33,833 us | 0.0% |
AASTNodeList::current | 331,623 | 963,574 us | 0.8% | 779,706 us | 0.7% |
PhutilLibraryMapBuilder::buildLibraryMap | 22 | 931,230 us | 0.8% | 921,807 us | 0.8% |
AASTToken::getNonsemanticTokensBefore | 41,607 | 915,437 us | 0.8% | 560,317 us | 0.5% |
ArcanistXHPASTLinter::lintDuplicateKeysInArray | 215 | 912,041 us | 0.8% | 403,702 us | 0.3% |
PhutilConsoleServer::handleMessage | 35,048 | 898,384 us | 0.8% | 149,368 us | 0.1% |
AASTNode::getLineNumber | 1,027 | 861,172 us | 0.7% | 5,463 us | 0.0% |
AASTNode::selectTokensOfTypes | 4,861 | 857,182 us | 0.7% | 797,909 us | 0.7% |
AASTTree::getOffsetToLineNumberMap | 2,054 | 849,018 us | 0.7% | 848,957 us | 0.7% |
ArcanistLinter::getData | 350,798 | 843,072 us | 0.7% | 777,503 us | 0.7% |
AASTNode::getTypeName | 219,873 | 838,842 us | 0.7% | 655,864 us | 0.6% |
ArcanistConsoleLintRenderer::renderContext | 426 | 836,615 us | 0.7% | 315,895 us | 0.3% |
ArcanistFutureLinter::willLintPaths | 22 | 829,529 us | 0.7% | 3,166 us | 0.0% |
FileFinder::find | 22 | 828,068 us | 0.7% | 62,647 us | 0.1% |
ArcanistXHPASTLinter::lintLowercaseFunctions | 215 | 826,587 us | 0.7% | 656,295 us | 0.6% |
FutureIterator::addFuture | 430 | 806,019 us | 0.7% | 9,629 us | 0.0% |
PhutilConsole::writeOut | 152 | 801,115 us | 0.7% | 2,472 us | 0.0% |
PhutilConsole::writeLog | 34,896 | 772,195 us | 0.6% | 98,080 us | 0.1% |