build/profiler/profiler-beta.js
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.4.0
*/
YAHOO.namespace("tool");
/**
* The YUI JavaScript profiler.
* @module profiler
* @namespace YAHOO.tool
* @requires yahoo
*/
/**
* Profiles functions in JavaScript.
* @namespace YAHOO.tool
* @class Profiler
* @static
*/
YAHOO.tool.Profiler = {
//-------------------------------------------------------------------------
// Private Properties
//-------------------------------------------------------------------------
/**
* Container object on which to put the original unprofiled methods.
* @type Object
* @private
* @static
* @property _container
*/
_container : new Object(),
/**
* Call information for functions.
* @type Object
* @private
* @static
* @property _report
*/
_report : new Object(),
//-------------------------------------------------------------------------
// Private Methods
//-------------------------------------------------------------------------
/**
* Called when a method ends execution. Marks the start and end time of the
* method so it can calculate how long the function took to execute. Also
* updates min/max/avg calculations for the function.
* @param {String} name The name of the function to mark as stopped.
* @param {int} duration The number of milliseconds it took the function to
* execute.
* @return {Void}
* @private
* @static
*/
后面还有 321 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
