Skip to content

Commit 47f9e33

Browse files
committed
c7a2441 chore(perf): return perf metrics from AngularProfiler
1 parent bbab3e3 commit 47f9e33

749 files changed

Lines changed: 948 additions & 885 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Mon Apr 18 19:26:02 UTC 2016
2-
002de6b772070571d74c1a13b307f1da86241eea
1+
Mon Apr 18 19:26:26 UTC 2016
2+
c7a2441ed315ccf3b8def81f481fbc3bcc849ef3

animate.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

animate/testing.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2-all-testing.umd.dev.js

Lines changed: 25 additions & 18 deletions
Large diffs are not rendered by default.

bundles/angular2-all.umd.dev.js

Lines changed: 25 additions & 18 deletions
Large diffs are not rendered by default.

bundles/angular2-all.umd.js

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,14 @@ return /******/ (function(modules) { // webpackBootstrap
764764
/**
765765
* Declares a list of child element references.
766766
*
767-
* Angular automatically updates the list when the DOM is updated.
767+
* Angular automatically updates the list when the DOM was updated.
768768
*
769769
* `ViewChildren` takes a argument to select elements.
770770
*
771771
* - If the argument is a type, directives or components with the type will be bound.
772772
*
773-
* - If the argument is a string, the string is interpreted as a list of comma-separated selectors.
774-
* For each selector, an element containing the matching template variable (e.g. `#child`) will be
775-
* bound.
773+
* - If the argument is a string, the string behaviors as comma-separated selectors. For each
774+
* selector, an element matched template variables (e.g. `#child`) will be bound.
776775
*
777776
* View children are set before the `ngAfterViewInit` callback is called.
778777
*
@@ -843,17 +842,17 @@ return /******/ (function(modules) { // webpackBootstrap
843842
exports.ViewChildren = decorators_1.makePropDecorator(di_2.ViewChildrenMetadata);
844843
// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildMetadata.
845844
/**
846-
* Declares a reference to a child element.
845+
* Declares a reference of child element.
847846
*
848847
* `ViewChildren` takes a argument to select elements.
849848
*
850849
* - If the argument is a type, a directive or a component with the type will be bound.
851850
*
852-
* - If the argument is a string, the string is interpreted as a selector. An element containing the
853-
* matching template variable (e.g. `#child`) will be bound.
851+
* - If the argument is a string, the string behaviors as a selectors. An element matched template
852+
* variables (e.g. `#child`) will be bound.
854853
*
855-
* In either case, `@ViewChild()` assigns the first (looking from above) element if there are
856-
* multiple matches.
854+
* In either case, `@ViewChild()` assigns the first (looking from above) element if the result is
855+
* multiple.
857856
*
858857
* View child is set before the `ngAfterViewInit` callback is called.
859858
*
@@ -1469,15 +1468,14 @@ return /******/ (function(modules) { // webpackBootstrap
14691468
/**
14701469
* Declares a list of child element references.
14711470
*
1472-
* Angular automatically updates the list when the DOM is updated.
1471+
* Angular automatically updates the list when the DOM was updated.
14731472
*
14741473
* `ViewChildren` takes an argument to select elements.
14751474
*
14761475
* - If the argument is a type, directives or components with the type will be bound.
14771476
*
1478-
* - If the argument is a string, the string is interpreted as a list of comma-separated selectors.
1479-
* For each selector, an element containing the matching template variable (e.g. `#child`) will be
1480-
* bound.
1477+
* - If the argument is a string, the string behaviors as comma-separated selectors. For each
1478+
* selector, an element matched template variables (e.g. `#child`) will be bound.
14811479
*
14821480
* View children are set before the `ngAfterViewInit` callback is called.
14831481
*
@@ -1563,11 +1561,11 @@ return /******/ (function(modules) { // webpackBootstrap
15631561
*
15641562
* - If the argument is a type, a directive or a component with the type will be bound.
15651563
*
1566-
If the argument is a string, the string is interpreted as a selector. An element containing the
1567-
matching template variable (e.g. `#child`) will be bound.
1564+
* - If the argument is a string, the string behaviors as a selectors. An element matched template
1565+
* variables (e.g. `#child`) will be bound.
15681566
*
1569-
* In either case, `@ViewChild()` assigns the first (looking from above) element if there are
1570-
multiple matches.
1567+
* In either case, `@ViewChild()` assigns the first (looking from above) element if the result is
1568+
* multiple.
15711569
*
15721570
* View child is set before the `ngAfterViewInit` callback is called.
15731571
*
@@ -33444,6 +33442,14 @@ return /******/ (function(modules) { // webpackBootstrap
3344433442
var lang_1 = __webpack_require__(5);
3344533443
var browser_1 = __webpack_require__(228);
3344633444
var dom_adapter_1 = __webpack_require__(196);
33445+
var ChangeDetectionPerfRecord = (function () {
33446+
function ChangeDetectionPerfRecord(msPerTick, numTicks) {
33447+
this.msPerTick = msPerTick;
33448+
this.numTicks = numTicks;
33449+
}
33450+
return ChangeDetectionPerfRecord;
33451+
}());
33452+
exports.ChangeDetectionPerfRecord = ChangeDetectionPerfRecord;
3344733453
/**
3344833454
* Entry point for all Angular debug tools. This object corresponds to the `ng`
3344933455
* global variable accessible in the dev console.
@@ -33504,6 +33510,7 @@ return /******/ (function(modules) { // webpackBootstrap
3350433510
var msPerTick = (end - start) / numTicks;
3350533511
browser_1.window.console.log("ran " + numTicks + " change detection cycles");
3350633512
browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick, 2) + " ms per check");
33513+
return new ChangeDetectionPerfRecord(msPerTick, numTicks);
3350733514
};
3350833515
return AngularProfiler;
3350933516
}());

bundles/angular2-all.umd.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2.dev.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20554,6 +20554,14 @@ System.register("angular2/src/platform/browser/tools/common_tools", ["angular2/s
2055420554
var lang_1 = require("angular2/src/facade/lang");
2055520555
var browser_1 = require("angular2/src/facade/browser");
2055620556
var dom_adapter_1 = require("angular2/src/platform/dom/dom_adapter");
20557+
var ChangeDetectionPerfRecord = (function() {
20558+
function ChangeDetectionPerfRecord(msPerTick, numTicks) {
20559+
this.msPerTick = msPerTick;
20560+
this.numTicks = numTicks;
20561+
}
20562+
return ChangeDetectionPerfRecord;
20563+
}());
20564+
exports.ChangeDetectionPerfRecord = ChangeDetectionPerfRecord;
2055720565
var AngularTools = (function() {
2055820566
function AngularTools(ref) {
2055920567
this.profiler = new AngularProfiler(ref);
@@ -20585,6 +20593,7 @@ System.register("angular2/src/platform/browser/tools/common_tools", ["angular2/s
2058520593
var msPerTick = (end - start) / numTicks;
2058620594
browser_1.window.console.log("ran " + numTicks + " change detection cycles");
2058720595
browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick, 2) + " ms per check");
20596+
return new ChangeDetectionPerfRecord(msPerTick, numTicks);
2058820597
};
2058920598
return AngularProfiler;
2059020599
}());

bundles/angular2.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20554,6 +20554,14 @@ System.register("angular2/src/platform/browser/tools/common_tools", ["angular2/s
2055420554
var lang_1 = require("angular2/src/facade/lang");
2055520555
var browser_1 = require("angular2/src/facade/browser");
2055620556
var dom_adapter_1 = require("angular2/src/platform/dom/dom_adapter");
20557+
var ChangeDetectionPerfRecord = (function() {
20558+
function ChangeDetectionPerfRecord(msPerTick, numTicks) {
20559+
this.msPerTick = msPerTick;
20560+
this.numTicks = numTicks;
20561+
}
20562+
return ChangeDetectionPerfRecord;
20563+
}());
20564+
exports.ChangeDetectionPerfRecord = ChangeDetectionPerfRecord;
2055720565
var AngularTools = (function() {
2055820566
function AngularTools(ref) {
2055920567
this.profiler = new AngularProfiler(ref);
@@ -20585,6 +20593,7 @@ System.register("angular2/src/platform/browser/tools/common_tools", ["angular2/s
2058520593
var msPerTick = (end - start) / numTicks;
2058620594
browser_1.window.console.log("ran " + numTicks + " change detection cycles");
2058720595
browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick, 2) + " ms per check");
20596+
return new ChangeDetectionPerfRecord(msPerTick, numTicks);
2058820597
};
2058920598
return AngularProfiler;
2059020599
}());

bundles/angular2.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)