Skip to content

Commit

Permalink
WIP: debugging fir #681
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Mar 6, 2022
1 parent 0614952 commit b6edd28
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbux-common-node/src/filters/moduleFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { parsePackageName } from '../util/moduleUtil';
// import { requireDynamic } from '../util/requireUtil';

let Verbose;
// const DefaultVerbose = 1;
const DefaultVerbose = 2;
const DefaultVerbose = 1;
// const DefaultVerbose = 2;
// const DefaultVerbose = 10;

function debugLog(...args) {
Expand Down
21 changes: 21 additions & 0 deletions dbux-graph-host/src/graph/syncGraph/ContextNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,27 @@ class ContextNode extends HostComponentEndpoint {
// stats
// ########################################

get nTreeContexts() {
const stats = this.dp.queries.statsByContext(this.contextId);
return stats?.nTreeContexts || 0;
}

get nTreeStaticContexts() {
const stats = this.dp.queries.statsByContext(this.contextId);
return stats?.nTreeStaticContexts || 0;
}

//get amount of file call
get nTreeFileCalled() {
const state = this.dp.queries.statsByContext(this.contextId);
return state?.nTreeFileCalled || 0;
}

get nTreeTraces() {
const stats = this.dp.queries.statsByContext(this.contextId);
return stats?.nTreeTraces || 0;
}

setStatsEnabled(enabled) {
const upd = {
statsEnabled: enabled
Expand Down

0 comments on commit b6edd28

Please sign in to comment.