- Timestamp:
- 04/24/12 21:58:52 (10 years ago)
- Location:
- Tests/JAVA/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Tests/JAVA/test/pom.xml
r548 r549 294 294 <artifactSet> 295 295 <excludes> 296 <exclude>junit:*</exclude> 297 <exclude>jmock:*</exclude> 296 <exclude>*:junit*</exclude> 297 <exclude>*:jmock*</exclude> 298 <exclude>*:hamcrest*</exclude> 299 <exclude>*:colt*</exclude> 298 300 <exclude>*:xml-apis</exclude> 299 <exclude>*:disruptor </exclude>300 <exclude>*:jetlang </exclude>301 <exclude>*:disruptor*</exclude> 302 <exclude>*:jetlang*</exclude> 301 303 <exclude>*:jna</exclude> 304 <exclude>*:*:sources</exclude> 302 305 </excludes> 303 306 </artifactSet> -
Tests/JAVA/test/src/main/java/test/ivan/Main.java
r548 r549 110 110 private static class PacketEntryProcessor implements Function<PacketEntry, Boolean> { 111 111 private static final int INITIAL_CAPACITY = 1 << 20; // =1Mb 112 private static final int PRINT_PROGRESS = 1 << 14; // =16K112 // private static final int PRINT_PROGRESS = 1 << 14; // =16K 113 113 114 114 private final TObjectLongHashMap<byte[]> timestampByHash = new TObjectLongHashMap<byte[]>( … … 128 128 public Boolean apply( final PacketEntry entry ) { 129 129 entriesCount++; 130 if ( ( entriesCount % PRINT_PROGRESS ) == 0 ) {131 System.out.printf( "%d entries processed\n", entriesCount );132 }130 // if ( ( entriesCount % PRINT_PROGRESS ) == 0 ) { 131 // System.out.printf( "%d entries processed\n", entriesCount ); 132 // } 133 133 134 134 final byte[] hash = entry.hash(); … … 142 142 timestampByHash.remove( hash );//do not keep garbage 143 143 if ( ellapsed <= 0 ) { 144 System.err.printf( "WTF: packet in at %d, out at %d\n", packetInTimestamp, timestamp ); 144 //это значит просто пакет шел в обратном направлении 145 formatter.format( "%s, %d\n", entry.kind(), -ellapsed ); 145 146 } else { 146 147 formatter.format( "%s, %d\n", entry.kind(), ellapsed ); -
Tests/JAVA/test/test.iws
r548 r549 242 242 <entry file="file://$PROJECT_DIR$/src/main/java/test/ivan/Main.java"> 243 243 <provider selected="true" editor-type-id="text-editor"> 244 <state line="1 55" column="20" selection-start="5704" selection-end="5704" vertical-scroll-proportion="0.8391892">244 <state line="112" column="28" selection-start="4067" selection-end="4067" vertical-scroll-proportion="0.23108108"> 245 245 <folding /> 246 246 </state> … … 251 251 <entry file="file://$PROJECT_DIR$/pom.xml"> 252 252 <provider selected="true" editor-type-id="text-editor"> 253 <state line=" 295" column="50" selection-start="10140" selection-end="10140" vertical-scroll-proportion="0.0">253 <state line="303" column="56" selection-start="10665" selection-end="10665" vertical-scroll-proportion="0.0"> 254 254 <folding /> 255 255 </state> … … 2060 2060 <entry file="file://$PROJECT_DIR$/pom.xml"> 2061 2061 <provider selected="true" editor-type-id="text-editor"> 2062 <state line=" 295" column="50" selection-start="10140" selection-end="10140" vertical-scroll-proportion="0.0">2062 <state line="303" column="56" selection-start="10665" selection-end="10665" vertical-scroll-proportion="0.0"> 2063 2063 <folding /> 2064 2064 </state> … … 2067 2067 <entry file="file://$PROJECT_DIR$/src/main/java/test/ivan/Main.java"> 2068 2068 <provider selected="true" editor-type-id="text-editor"> 2069 <state line="1 55" column="20" selection-start="5704" selection-end="5704" vertical-scroll-proportion="0.8391892">2069 <state line="112" column="28" selection-start="4067" selection-end="4067" vertical-scroll-proportion="0.23108108"> 2070 2070 <folding /> 2071 2071 </state>
Note: See TracChangeset
for help on using the changeset viewer.