profile.html revision 998276643802ff9fb197fe220cbd9552da00a624
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<!doctype html>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<html>
661bfa5aae55ac2f94fa1cb131ea2323e5f6e633vboxsync<head>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <title>Test Page</title>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <link type="text/css" rel="stylesheet" href="/assets/dpSyntaxHighlighter.css">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <link type="text/css" rel="stylesheet" href="/profile-report/table.css">
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync <link type="text/css" rel="stylesheet" href="/build/console/assets/skins/sam/console-filters.css">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <style type="text/css">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync.markup {
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync clear: both;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync}
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync.yui-skin-sam #c .yui-console {
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync position: relative;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync top: auto;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync right: auto;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync}
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#c {
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync margin-bottom: 1em;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync}
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync </style>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync</head>
661bfa5aae55ac2f94fa1cb131ea2323e5f6e633vboxsync<body class="yui-skin-sam">
661bfa5aae55ac2f94fa1cb131ea2323e5f6e633vboxsync<div class="markup">
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync <div id="c"></div>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <input type="button" id="foo" value="Log foo msg">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <input type="button" id="info" value="Log info msg">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <input type="button" id="warn" value="Log warn msg">
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <input type="button" id="error" value="Log error msg">
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync <button type="button" id="hide">Hide</button>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <button type="button" id="show">Show</button>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <button type="button" id="collapse">Collapse</button>
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync <button type="button" id="expand">Expand</button>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <button type="button" id="destroy">Destroy</button>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync <button type="button" id="throttle">Throttle</button>
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync <button type="button" id="report">Report</button>
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync</div>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<script type="text/javascript" src="/build/yui/yui.js"></script>
23d8f7aff045c2bade1b168fee79a3e4749e2345vboxsync<script type="text/javascript" src="/profile-report/profiler.js"></script>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<script type="text/javascript" src="/profile-report/profile-report.js"></script>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<script type="text/javascript" src="/profile-report/table.js"></script>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync<script type="text/javascript">
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncYUI({
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync base: '/build/',
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync //logLevel: 'warn',
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync filter: 'debug',
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync //logInclude : { global: true },
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync useBrowserConsole:false
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync}).use('profile-report','table','console','profiler', function (Y) {
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/****************************************************************************/
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/*********************** Testing area begins here **************************/
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/****************************************************************************/
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsyncvar P = Y.Profiler;
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsyncP.registerConstructor('Console',Y);
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsyncvar yconsole = new Y.Console({
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync //verbose : true,
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync //consoleLimit : 10,
e250515922582e0410c9bcb6d24b0f17bef083a0vboxsync logLevel : "Garbage",
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync newestOnTop : false
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync});
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsyncP.renderFullReport("Construction");
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync//yconsole.plug(Y.Plugin.ConsoleFilters);
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsyncP.unregisterConstructor('Console',Y);
9540ab73f6cd0c76f44f6bbfe73f89ac145390b8vboxsync
e250515922582e0410c9bcb6d24b0f17bef083a0vboxsyncP.registerObject(yconsole);
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncyconsole.render('#c');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsyncP.renderFullReport("Render");
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/*
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.log('testing');
fdb40b7d2efa84fc6f03b7a695cb4b2e035c30c7vboxsync
fdb40b7d2efa84fc6f03b7a695cb4b2e035c30c7vboxsyncreport("<code>Y.log('testing')</code>");
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.log('testing known category','info');
e250515922582e0410c9bcb6d24b0f17bef083a0vboxsyncreport("<code>Y.log('testing known category','info')</code>");
19320d55d1417c39b3b5673a53aaa5ef177242c8vboxsync
19320d55d1417c39b3b5673a53aaa5ef177242c8vboxsyncY.log('testing new category','foo');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncreport("<code>Y.log('testing new category','foo')</code>");
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsyncY.log('testing known source','info','global');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncreport("<code>Y.log('testing known source','info','global')</code>");
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.log('testing new source','info','bar');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncreport("<code>Y.log('testing new source','info','bar')</code>");
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
c66c4413faa5a72ce047742f9acfa85e94dec8afvboxsyncyconsole.log("Test from the console object",'info','Console');
c66c4413faa5a72ce047742f9acfa85e94dec8afvboxsyncreport("<code>yconsole.log('Test from Console object',..)</code>");
c66c4413faa5a72ce047742f9acfa85e94dec8afvboxsync*/
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsyncvar x = {
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync foo : 0,
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync info : 0,
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync warn : 0,
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync error : 0
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync};
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.on('click',function (e) { Y.log('FOO message '+(++x.foo),'foo'); },'#foo');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.on('click',function (e) { Y.log('INFO message '+(++x.info)); },'#info');
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsyncY.on('click',function (e) { Y.log('WARN message '+(++x.warn),'warn'); },'#warn');
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.on('click',function (e) { Y.log('ERROR message '+(++x.error),'error'); },'#error');
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#hide').on('click', function () { yconsole.hide(); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#show').on('click', function () { yconsole.show(); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#collapse').on('click', function () { yconsole.collapse(); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#expand').on('click', function () { yconsole.expand(); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#destroy').on('click', function () { yconsole.destroy(); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#throttle').on('click', function () {
0c94a8282c9042b02f022302a3d987746140eab9vboxsync for (var i = 0; i < 500; ++i) {
0c94a8282c9042b02f022302a3d987746140eab9vboxsync Y.log('Throttle message ' + i);
0c94a8282c9042b02f022302a3d987746140eab9vboxsync }
0c94a8282c9042b02f022302a3d987746140eab9vboxsync});
0c94a8282c9042b02f022302a3d987746140eab9vboxsyncY.get('#report').on('click', function () { P.renderFullReport("Activity since last report"); });
0c94a8282c9042b02f022302a3d987746140eab9vboxsync
0c94a8282c9042b02f022302a3d987746140eab9vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync});
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync</script>
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync<script type="text/javascript" src="/assets/dpSyntaxHighlighter.js"></script>
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync<script type="text/javascript" src="/assets/dpSyntaxHighlightExample.js"></script>
0c94a8282c9042b02f022302a3d987746140eab9vboxsync</body>
0c94a8282c9042b02f022302a3d987746140eab9vboxsync</html>
0c94a8282c9042b02f022302a3d987746140eab9vboxsync