IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Application
  • AssetManager
  • Attach
  • AuthManager
  • Browser
  • Cache
  • Category
  • Engine
  • Log
  • MessageSource
  • PerformanceMeasurement
  • PlugManager
  • Request
  • ThemeManager
  • Upgrade
  • Upload

Class PerformanceMeasurement

CApplicationComponent
Extended by application\core\components\PerformanceMeasurement
Namespace: application\core\components
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/components/PerformanceMeasurement.php

Methods summary

public
# startClock( )

开始计时

开始计时

public float
# endClockAndGet( )

结束计时并返回用时

结束计时并返回用时

Returns

float
public
# addTimingById( string $identifer, number $time )

给时间标记数组增加一对记录,已存在的会更新

Parameters

$identifer
标记
$time
秒数
public array
# getTimings( )

返回耗时记录数组

返回耗时记录数组

Returns

array
public
# startMemoryUsageMarker( )

开始标记内存使用

开始标记内存使用

public mixed
# getMemoryMarkerUsage( boolean $format = true )

获取上一个标记到现在的内存使用情况

获取上一个标记到现在的内存使用情况

Parameters

$format
是否要格式化输出

Returns

mixed
public
# getDbStats( )
public integer
# getMemoryUsage( )

获取当前内存使用情况

获取当前内存使用情况

Returns

integer

Properties summary

protected interger $startTime

开始时间,一般记录在流程初始化开始

开始时间,一般记录在流程初始化开始

#
protected interger $memoryUsage

内存使用

内存使用

#
protected array $timings

用于生产模式的测试运行时间标记数组。

用于生产模式的测试运行时间标记数组。

# array()
IBOS open source API documentation generated by ApiGen