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
6f926e15
Commit
6f926e15
authored
10 years ago
by
Florian Fittkau
Browse files
Options
Downloads
Patches
Plain Diff
some disruptor improvements
parent
171103a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/explorviz/live_trace_processing/reader/TCPReader.java
+5
-2
5 additions, 2 deletions
src/explorviz/live_trace_processing/reader/TCPReader.java
src/explorviz/live_trace_processing/reader/TCPReaderOneClient.java
+1
-1
1 addition, 1 deletion
...rviz/live_trace_processing/reader/TCPReaderOneClient.java
with
6 additions
and
3 deletions
src/explorviz/live_trace_processing/reader/TCPReader.java
+
5
−
2
View file @
6f926e15
...
...
@@ -5,17 +5,19 @@ import java.net.InetSocketAddress;
import
java.nio.channels.ServerSocketChannel
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.TimeUnit
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.lmax.disruptor.BlockingWaitStrategy
;
import
com.lmax.disruptor.EventHandler
;
import
com.lmax.disruptor.RingBuffer
;
import
com.lmax.disruptor.dsl.Disruptor
;
import
com.lmax.disruptor.dsl.ProducerType
;
import
explorviz.live_trace_processing.Constants
;
import
explorviz.live_trace_processing.filter.AbstractFilter
;
import
explorviz.live_trace_processing.filter.RecordArrayEvent
;
import
explorviz.live_trace_processing.filter.RecordArrayEventFactory
;
import
explorviz.live_trace_processing.filter.reconstruction.ITraceReconstruction
;
...
...
@@ -40,7 +42,8 @@ public final class TCPReader implements IPeriodicTimeSignalReceiver {
final
Disruptor
<
RecordArrayEvent
>
disruptor
=
new
Disruptor
<
RecordArrayEvent
>(
new
RecordArrayEventFactory
(
Constants
.
TCP_READER_OUTPUT_BUFFER_SIZE
),
Constants
.
TCP_READER_DISRUPTOR_SIZE
,
AbstractFilter
.
cachedThreadPool
);
Constants
.
TCP_READER_DISRUPTOR_SIZE
,
Executors
.
newCachedThreadPool
(),
ProducerType
.
MULTI
,
new
BlockingWaitStrategy
());
@SuppressWarnings
(
"unchecked"
)
final
EventHandler
<
RecordArrayEvent
>[]
eventHandlers
=
new
EventHandler
[
1
];
...
...
This diff is collapsed.
Click to expand it.
src/explorviz/live_trace_processing/reader/TCPReaderOneClient.java
+
1
−
1
View file @
6f926e15
...
...
@@ -70,7 +70,7 @@ class TCPReaderOneClient extends Thread {
@Override
public
void
run
()
{
final
ByteBuffer
buffer
=
ByteBuffer
.
allocateDirect
(
16
*
1024
*
1024
);
final
ByteBuffer
buffer
=
ByteBuffer
.
allocateDirect
(
1024
*
1024
);
try
{
if
(
socketChannel
.
isConnected
())
{
remoteAddress
=
((
InetSocketAddress
)
socketChannel
.
getRemoteAddress
())
...
...
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