Function __global->_cms_profile_generate_line

Definitions

sources/profiler.php

  • Generate a line to add to the profiling log, from a recorded signature.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$identifier ID_TEXT No No required parameter N/A N/A Identifier
$at array No No required parameter N/A N/A The signature for what we just profiled
$cnt ?integer No No required parameter N/A N/A The nth time this identifier was profiled (null: we started profiling opposed to finished)

Returns

  • Log line
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate a line to add to the profiling log, from a recorded signature.
 *
 * @param  ID_TEXT $identifier Identifier
 * @param  array $at The signature for what we just profiled
 * @param  ?integer $cnt The nth time this identifier was profiled (null: we started profiling opposed to finished)
 * @return string Log line
 */

function _cms_profile_generate_line(string $identifier, array $at, ?int $cnt) : string