Поддержка серверов

PERFMON: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

События модуля perfmon

СобытиеВызывается
OnGetTableSchemaCPerfomanceSchema::Init
OnPageStartCPerfomanceKeeper::IsActive

Константы модуля perfmon

КонстантаПроверяется
PERFMON_STOPCPerfomanceKeeper::OnPageStart
PERFMON_STARTEDCPerfomanceKeeper::OnAfterAfterEpilog
ADMIN_SECTIONCPerfomanceKeeper::writeToDatabase

Список функций и методов модуля perfmon

Метод
perfmon_NumberFormat($num, $dec = 2, $mode = 0)
CAdminListColumn::__construct($id, $info)
CAdminListColumn::getRowView($arRes)
CAdminListColumn::getRowEdit($arRes)
CAdminListColumn::getFilterInput()
CAdminListColumnList::__construct($id, $info, array $list = array())
CAdminListColumnList::getRowView($arRes)
CAdminListColumnList::getRowEdit($arRes)
CAdminListColumnList::getFilterInput()
CAdminListColumnNumber::__construct($id, $info, $precision)
CAdminListColumnNumber::getRowView($arRes)
CAdminListPage::__construct($pageTitle, $sTableID, $arSort = false, $navLabel = "")
CAdminListPage::addColumn(CAdminListColumn $column)
CAdminListPage::initFilter()
CAdminListPage::getFilter()
CAdminListPage::getHeaders()
CAdminListPage::getSelectedFields()
CAdminListPage::getDataSource($arOrder, $arFilter, $arSelect)
CAdminListPage::getOrder()
CAdminListPage::getFooter()
CAdminListPage::getContextMenu()
CAdminListPage::displayFilter()
CAdminListPage::show()
CSqlFormatFormatter::format($tokens)
CSqlFormatFormatter::removeSpaces($match)
CSqlFormatFormatter::removeTrailingSpaces(&$str)
CSqlFormatFormatter::getEol()
CSqlFormatFormatter::getSpace()
CSqlFormatFormatter::getTab()
CSqlFormatText::getEol()
CSqlFormatText::getSpace()
CSqlFormatText::getTab()
CSqlTokenizer::parse($sql)
CSqlTokenizer::transform($token)
CSqlTokenizer::removeBalancedBrackets()
CSqlTokenizer::lookForwardFor($token)
CSqlLevel::addLevel(array $tokens)
CSqlLevel::changeLevelBefore()
CSqlLevel::changeLevelAfter()
CSqlLevel::lookForwardFor($token)
CSqlLevel::lookBackwardFor($token)
CSqlFormat::__construct()
CSqlFormat::reformatSql($sql, CSqlFormatFormatter $formatter = null)
CSqlFormat::setFormatter(CSqlFormatFormatter $formatter)
CSqlFormat::format($sql)
CPerfomanceError::Delete($arFilter)
CPerfomanceError::GetList($arSelect, $arFilter, $arOrder, $bGroup = false)
CPerfomanceError::Clear()
CPerfomanceMeasure::GetPHPCPUMark()
CPerfomanceMeasure::GetPHPFilesMark()
CPerfomanceMeasure::GetPHPMailMark()
CPerfomanceMeasure::GetDBMark($type)
CPerfomanceMeasure::GetAccelerator()
CPerfomanceMeasure::GetAllAccelerators()
CPerfAccel::__construct($enabled, $cache_ttl, $max_file_size, $check_mtime, $memory_total, $memory_used, $cache_limit = -1)
CPerfAccel::GetParams()
CPerfAccel::IsWorking()
CPerfAccel::GetRecommendations()
CPerfAccel::unformat($str)
CPerfAccelZend::__construct()
CPerfAccelZend::GetRecommendations()
CPerfAccelZend::GetParams()
CPerfAccelAPC::__construct()
CPerfAccelAPC::GetParams()
CPerfAccelXCache::__construct()
CPerfAccelXCache::GetParams()
CPerfAccelWinCache::__construct()
CPerfAccelWinCache::GetParams()
CPerfAccelZendOpCache::__construct()
CPerfAccelZendOpCache::GetRecommendations()
CPerfAccelZendOpCache::GetParams()
CPerfomanceHistory::GetList($arOrder, $arFilter = array())
CPerfomanceHistory::Delete($ID)
CPerfomanceHistory::Add($arFields)
CPerfomanceHit::GetList($arOrder, $arFilter, $bGroup, $arNavStartParams, $arSelect)
CPerfomanceHit::Clear()
CPerfomanceIndexSuggest::GetList($arSelect, $arFilter, $arOrder)
CPerfomanceIndexSuggest::Add($arFields)
CPerfomanceIndexSuggest::Delete($ID)
CPerfomanceIndexSuggest::UpdateStat($sql_md5, $count, $query_time, $sql_id)
CPerfomanceIndexSuggest::Clear()
CPerfomanceSchema::Init()
CPerfomanceSchema::GetChildren($table_name)
CPerfomanceSchema::GetParents($table_name)
CPerfomanceSchema::_sort($a, $b)
CPerfomanceComponent::GetList($arOrder, $arFilter, $bGroup, $arNavStartParams, $arSelect)
CPerfomanceComponent::Clear()
CPerfomanceCache::GetList($arOrder, $arFilter, $bGroup, $arNavStartParams, $arSelect)
CPerfomanceCache::Clear()
CPerfQueryJoin::_parse($sql, &$table, &$column, &$const)
CPerfQueryJoin::parse_left($sql)
CPerfQueryJoin::parse_right($sql)
CPerfQueryWhere::__construct($table_aliases_regex)
CPerfQueryWhere::parse($sql)
CPerfQueryWhere::_remove_braces($sql)
CPerfQueryWhere::_or2in($or_match)
CPerfQueryTable::parse($sql)
CPerfQueryFrom::parse($sql)
CPerfQueryFrom::getTableAliases()
CPerfQuery::transform2select($sql)
CPerfQuery::removeSpaces($str)
CPerfQuery::parse($sql)
CPerfQuery::parse_subqueries()
CPerfQuery::cmp($table, $alias)
CPerfQuery::table_joins($table_alias)
CPerfQuery::suggest_index($table_alias)
CPerfQuery::array_power_set($array)
CPerfQuery::_adjust_columns($arColumns)
CPerfQuery::has_where($table_alias = false)
CPerfQuery::find_value($table_name, $column_name)
CPerfQuery::find_join($table_name, $column_name)
CPerfQuery::remove_literals($sql)
CPerfomanceSQL::GetList($arSelect, $arFilter, $arOrder, $bGroup, $arNavStartParams = false)
CPerfomanceSQL::GetBacktraceList($sql_id)
CPerfomanceSQL::Format($strSql)
perfmonErrorHandler($errno, $errstr, $errfile, $errline)
CPerfomanceKeeper::OnPageStart()
CPerfomanceKeeper::setDebugModeOn()
CPerfomanceKeeper::restoreDebugMode()
CPerfomanceKeeper::OnEpilog()
CPerfomanceKeeper::OnBeforeAfterEpilog()
CPerfomanceKeeper::OnAfterAfterEpilog()
CPerfomanceKeeper::writeToDatabase()
CPerfomanceKeeper::SetPageTimes($START_EXEC_CURRENT_TIME, &$arFields)
CPerfomanceKeeper::removeQueries(&$arQueryDebug, &$arIncludeDebug, $slow_sql_time, $preserveComponents = false)
CPerfomanceKeeper::countQueries(&$query_count, &$query_time, $arQueryDebug, $arIncludeDebug)
CPerfomanceKeeper::countComponents(&$comps_count, &$comps_time, $arIncludeDebug)
CPerfomanceKeeper::removeCaches($large_cache_size, &$arCacheDebug, &$arIncludeDebug)
CPerfomanceKeeper::countCache($arCacheDebug, &$cache_count)
CPerfomanceKeeper::findCaller($trace, &$module_id, &$comp_id)
CPerfomanceKeeper::saveQueries($HIT_ID, $COMP_ID, $arQueryDebug, &$NN)
CPerfomanceKeeper::saveCaches($HIT_ID, $COMP_ID, $arCacheDebug, &$NN)
CPerfomanceKeeper::IsActive()
CPerfomanceKeeper::SetActive($bActive = false, $end_time = 0)
CPerfQueryStat::IsBanned($table, $columns)
CPerfQueryStat::Ban($table, $columns)
CPerfQueryStat::GetTableColumns($table)
CPerfQueryStat::GatherExpressStat($table, $columns, $q)
CPerfQueryStat::GatherColumnStatByValue($table, $column, $value)
CPerfQueryStat::GatherColumnStatOverall($table, $column)
CPerfQueryStat::GatherTableStat($table)
CPerfQueryStat::_gather_stat($table, $column, $value, $max_size = -1)
CPerfQueryStat::_get_stat($table, $column = "", $value = "")
CPerfQueryStat::IsSelective($table, $columns)
CPerfCluster::Add($arFields)
CPerfCluster::Truncate()
CPerfCluster::GetList($arOrder = false, $arFilter = false, $arSelect = false)
CPerfCluster::Measure($host, $port, $url, $threads, $iterations = 3, $arOptions = array())
CPerfomanceTable::GetList($arSelect, $arFilter, $arOrder = array(), $arNavParams = false)
CPerfomanceTable::NavQuery($arNavParams, $arQuerySelect, $strTableName, $strQueryWhere, $arQueryOrder)
CPerfomanceTable::escapeColumn($column)
CPerfomanceTable::escapeTable($tableName)
CPerfomanceTable::GetTableFields($TABLE_NAME = false, $bExtended = false)
CPerfomanceTable::getCreateIndexDDL($TABLE_NAME, $INDEX_NAME, $INDEX_COLUMNS)
CPerfomanceIndexComplete::GetList($arFilter = array(), $arOrder = array())
CPerfomanceIndexComplete::Add($arFields)
CPerfomanceIndexComplete::Delete($ID)
CPerfomanceIndexComplete::DeleteByTableName($table, $columns)
CPerfomanceIndexComplete::IsBanned($table, $columns)
CPerfomanceSQL::_console_explain($strSQL)
CPerfomanceSQL::Clear()
CPerfomanceTableList::GetList($bFull = true)
CPerfomanceTableList::Fetch()
CPerfomanceTable::Init($TABLE_NAME)
CPerfomanceTable::IsExists($TABLE_NAME = false)
CPerfomanceTable::GetIndexes($TABLE_NAME = false)
CPerfomanceTable::GetUniqueIndexes($TABLE_NAME = false)
Constraint::create(Tokenizer $tokenizer, $constraintName = '')
Constraint::getCreateDdl($dbType = '')
Constraint::getDropDdl($dbType = '')
Constraint::getModifyDdl(BaseObject $target, $dbType = '')
Index::__construct($name = '', $unique)
Index::addColumn($name)
Index::create(Tokenizer $tokenizer, $unique = false, $indexName = '')
Index::searchTableName(Tokenizer $tokenizer)
Index::getCreateDdl($dbType = '')
Index::getDropDdl($dbType = '')
Index::getModifyDdl(BaseObject $target, $dbType = '')
BaseObject::__construct($name = '')
BaseObject::setBody($body)
BaseObject::setParent(BaseObject $parent = null)
BaseObject::getLowercasedName()
BaseObject::getCompareName($name)
BaseObject::compareName($name)
BaseObject::getCreateDdl($dbType = '')
BaseObject::getDropDdl($dbType = '')
BaseObject::getModifyDdl(BaseObject $target, $dbType = '')
Procedure::__construct($name = '', $type = '')
Procedure::create(Tokenizer $tokenizer)
Procedure::getCreateDdl($dbType = '')
Procedure::getDropDdl($dbType = '')
Procedure::getModifyDdl(BaseObject $target, $dbType = '')
Schema::__construct()
Schema::createFromString($str, $delimiter)
Schema::splitStatements(Tokenizer $tokenizer, $delimiter = ';')
Schema::executeStatement(Tokenizer $tokenizer)
Schema::executeCreate(Tokenizer $tokenizer)
Schema::executeAlter(Tokenizer $tokenizer)
Schema::executeCreateTable(Tokenizer $tokenizer)
Schema::executeCreateIndex(Tokenizer $tokenizer, $unique)
Schema::executeCreateTrigger(Tokenizer $tokenizer)
Schema::executeCreateProcedure(Tokenizer $tokenizer)
Schema::executeCreateSequence(Tokenizer $tokenizer)
Compare::diff(Schema $source, Schema $target)
Compare::compareSequences(Schema $source, Schema $target)
Compare::compareProcedures(Schema $source, Schema $target)
Compare::compareTables(Schema $source, Schema $target)
Compare::compareTable(Table $source, Table $target)
Compare::compareColumn(Column $source, Column $target)
Updater::setDbType($dbType = '')
Updater::setDelimiter($delimiter = '')
Updater::getStatements()
Updater::generate($sourceSql, $targetSql)
Updater::handle(array $diff)
Updater::handleCreate(BaseObject $object)
Updater::handleDrop(BaseObject $object)
Updater::handleChange(BaseObject $source, BaseObject $target)
Updater::multiLinePhp($prefix, $body, $suffix)
Updater::createStatement($prefix, $body, $suffix)
Token::__construct($type, $text)
Token::setText($text)
Token::appendText($text)
Tokenizer::createFromString($sql)
Tokenizer::createFromTokens(array $tokens)
Tokenizer::getTokens()
Tokenizer::resetState()
Tokenizer::setBookmark()
Tokenizer::restoreBookmark()
Tokenizer::putBack()
Tokenizer::endOfInput()
Tokenizer::getCurrentToken()
Tokenizer::nextToken()
Tokenizer::skipWhiteSpace()
Tokenizer::testUpperText($text)
Tokenizer::testText($text)
Tokenizer::_tokenize($sql)
Tokenizer::makeLines()
Tokenizer::makeParenthesis()
Sequence::create(Tokenizer $tokenizer)
Sequence::getCreateDdl($dbType = '')
Sequence::getDropDdl($dbType = '')
Sequence::getModifyDdl(BaseObject $target, $dbType = '')
Table::__construct($name = '')
Table::createTrigger(Tokenizer $tokenizer)
Table::createConstraint(Tokenizer $tokenizer, $constraintName = '')
Table::createIndex(Tokenizer $tokenizer, $unique = false, $indexName = '')
Table::createColumn(Tokenizer $tokenizer)
Table::create(Tokenizer $tokenizer)
Table::getCreateDdl($dbType = '')
Table::getDropDdl($dbType = '')
Column::checkType($type)
Column::create(Tokenizer $tokenizer)
Column::getCreateDdl($dbType = '')
Column::getDropDdl($dbType = '')
Column::getModifyDdl(Column $target, $dbType = '')
Trigger::create(Tokenizer $tokenizer)
Trigger::searchTableName(Tokenizer $tokenizer)
Trigger::getCreateDdl($dbType = '')
Trigger::getDropDdl($dbType = '')
Trigger::getModifyDdl(BaseObject $target, $dbType = '')
Collection::add(BaseObject $object)
Collection::search($name)
Collection::getList()
Collection::compare(Collection $targetList, $compareBody = true)
Condition::__construct($predicate)
Condition::getPredicate()
CodeTree::__construct(array $statements)
CodeTree::getCode($level)
CodeTree::formatCodeTree($result, $level=0)
CodeTree::getCodeTree()
CodeTree::makeCodeTree(array $updaterSteps, &$result)
CodeTree::getPredicateSort($predicate)
Statement::addLine($line)
Statement::addCondition($predicate)
Statement::merge(Statement $stmt)
Statement::formatBodyLines($level = 0)
perfmon::perfmon()
perfmon::InstallDB($arParams = array())
perfmon::UnInstallDB($arParams = array())
perfmon::InstallEvents()
perfmon::UnInstallEvents()
perfmon::InstallFiles($arParams = array())
perfmon::UnInstallFiles()
perfmon::DoInstall()
perfmon::DoUninstall()
perfmon::GetModuleRightList()
perfmon::OnGetTableSchema()