Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Jastadd2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
Jastadd2
Commits
5efce351
Commit
5efce351
authored
6 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
Trace flushing cause by incremental.
parent
770604aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/template/incremental/Notification.tt
+3
-0
3 additions, 0 deletions
src/template/incremental/Notification.tt
src/template/trace/Tracer.tt
+9
-1
9 additions, 1 deletion
src/template/trace/Tracer.tt
with
12 additions
and
1 deletion
src/template/incremental/Notification.tt
+
3
−
0
View file @
5efce351
...
...
@@ -287,6 +287,9 @@ $endif
$AttrResetVisit
$AttrResetCache
$(AttrSign)_handler.notifyDependencies();
$if (TraceFlush)
state().trace().flushIncAttr(this, "$AttrSign", "", "");
$endif
$if(!#isASTNodeDecl)
super.reactToDependencyChange(attrID, _parameters);
$endif
...
...
This diff is collapsed.
Click to expand it.
src/template/trace/Tracer.tt
+
9
−
1
View file @
5efce351
...
...
@@ -78,7 +78,8 @@ public static class Trace {
// Flag: --tracing=flush
FLUSH_ATTR,
FLUSH_REWRITE,
FLUSH_REWRITE_INIT;
FLUSH_REWRITE_INIT,
INC_FLUSH_ATTR;
}
/**
...
...
@@ -324,6 +325,13 @@ public static class Trace {
public void flushAttr($ASTNode node, String attr, Object params, Object value) {
receiver.accept($StateClass.Trace.Event.FLUSH_ATTR, node, attr, params, value);
}
/**
* Trace that an attribute was flushed by incremental evaluation.
*/
public void flushIncAttr($ASTNode node, String attr, Object params, Object value) {
receiver.accept($StateClass.Trace.Event.INC_FLUSH_ATTR, node, attr, params, value);
}
}
$endif
]]
This diff is collapsed.
Click to expand it.
Johannes Mey
@johannes.mey
mentioned in commit
690898d9
·
6 years ago
mentioned in commit
690898d9
mentioned in commit 690898d903b4ae389eb69c9015b06eac58d479c7
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment