Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExplorViz
explorviz-github-archive
analysis
Commits
f2d9cdc3
Commit
f2d9cdc3
authored
11 years ago
by
Florian Fittkau
Browse files
Options
Downloads
Patches
Plain Diff
RecordCountingFilter now counting methodcalls
parent
5515d74b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/explorviz/live_trace_processing/filter/counting/RecordCountingFilter.java
+9
-4
9 additions, 4 deletions
...race_processing/filter/counting/RecordCountingFilter.java
with
9 additions
and
4 deletions
src/explorviz/live_trace_processing/filter/counting/RecordCountingFilter.java
+
9
−
4
View file @
f2d9cdc3
...
...
@@ -3,13 +3,14 @@ package explorviz.live_trace_processing.filter.counting;
import
explorviz.live_trace_processing.filter.AbstractFilter
;
import
explorviz.live_trace_processing.filter.IPipeReceiver
;
import
explorviz.live_trace_processing.record.IRecord
;
import
explorviz.live_trace_processing.record.event.AbstractBeforeEventRecord
;
import
explorviz.live_trace_processing.record.event.AbstractEventRecord
;
import
explorviz.live_trace_processing.record.trace.Trace
;
public
class
RecordCountingFilter
extends
AbstractFilter
implements
IRecordCounting
{
public
RecordCountingFilter
(
final
IPipeReceiver
receiver
)
{
super
(
receiver
,
16
,
64
,
"
Record
s/sec"
);
super
(
receiver
,
16
,
64
,
"
Methodcall
s/sec"
);
counter
.
setEnabled
(
false
);
}
...
...
@@ -17,10 +18,14 @@ public class RecordCountingFilter extends AbstractFilter implements IRecordCount
public
void
processRecord
(
final
IRecord
record
)
{
if
(
record
instanceof
Trace
)
{
final
Trace
trace
=
(
Trace
)
record
;
if
(
trace
.
isValid
())
{
counter
.
inputObjectsCount
(
trace
.
getTraceEvents
().
size
());
for
(
final
AbstractEventRecord
event
:
trace
.
getTraceEvents
())
{
if
(
event
instanceof
AbstractBeforeEventRecord
)
{
final
AbstractBeforeEventRecord
abstractBeforeEventRecord
=
(
AbstractBeforeEventRecord
)
event
;
counter
.
inputObjectsCount
(
abstractBeforeEventRecord
.
getRuntimeStatisticInformation
().
getCount
());
}
}
else
if
(
record
instanceof
AbstractEventRecord
)
{
}
}
else
if
(
record
instanceof
AbstractBeforeEventRecord
)
{
counter
.
inputObjectsCount
(
1
);
}
else
{
deliver
(
record
);
...
...
This diff is collapsed.
Click to expand it.
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