1 /** PURE_IMPORTS_START _SubscriptionLog PURE_IMPORTS_END */
2 import { SubscriptionLog } from './SubscriptionLog';
3 var SubscriptionLoggable = /*@__PURE__*/ (function () {
4 function SubscriptionLoggable() {
5 this.subscriptions = [];
7 SubscriptionLoggable.prototype.logSubscribedFrame = function () {
8 this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
9 return this.subscriptions.length - 1;
11 SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {
12 var subscriptionLogs = this.subscriptions;
13 var oldSubscriptionLog = subscriptionLogs[index];
14 subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
16 return SubscriptionLoggable;
18 export { SubscriptionLoggable };
19 //# sourceMappingURL=SubscriptionLoggable.js.map