You are here

public static function ReportConstants::getFormatCbk in XHProf 8

Returns mapping of formatting callbacks.

Return value

array Keyed array of indicators and optional callable to format them.

2 calls to ReportConstants::getFormatCbk()
Report::getPercentValue in src/XHProfLib/Report/Report.php
Report::getValue in src/XHProfLib/Report/Report.php

File

src/XHProfLib/Report/ReportConstants.php, line 127

Class

ReportConstants
Provides helpers for string constants.

Namespace

Drupal\xhprof\XHProfLib\Report

Code

public static function getFormatCbk() {
  return [
    "fn" => "",
    "ct" => [
      __CLASS__,
      "countFormat",
    ],
    "ct_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "wt" => "number_format",
    "wt_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_wt" => "number_format",
    "excl_wt_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "ut" => "number_format",
    "ut_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_ut" => "number_format",
    "excl_ut_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "st" => "number_format",
    "st_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_st" => "number_format",
    "excl_st_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "cpu" => "number_format",
    "cpu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_cpu" => "number_format",
    "excl_cpu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "mu" => "number_format",
    "mu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_mu" => "number_format",
    "excl_mu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "pmu" => "number_format",
    "pmu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_pmu" => "number_format",
    "excl_pmu_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "samples" => "number_format",
    "samples_perc" => [
      __CLASS__,
      "percentFormat",
    ],
    "excl_samples" => "number_format",
    "excl_samples_perc" => [
      __CLASS__,
      "percentFormat",
    ],
  ];
}