fix problem in PVField::replaceStructure.

There is still a memory leak
This commit is contained in:
Marty Kraimer
2011-01-19 14:29:12 -05:00
parent bb6437fd86
commit f73f18d692
15 changed files with 281 additions and 101 deletions
+12 -12
View File
@@ -1,20 +1,20 @@
Time test
diff 23.623024 milliSeconds
time per iteration 23.623024 microseconds
time per addTail/removeHead 0.011812 microseconds
diff 23.288030 milliSeconds
time per iteration 23.288030 microseconds
time per addTail/removeHead 0.011644 microseconds
Time test locked
diff 178.929120 milliSeconds
time per iteration 178.929120 microseconds
time per addTail/removeHead 0.089465 microseconds
diff 175.968013 milliSeconds
time per iteration 175.968013 microseconds
time per addTail/removeHead 0.087984 microseconds
Time std::list test
diff 632.698846 milliSeconds
time per iteration 632.698846 microseconds
time per addTail/removeHead 0.316349 microseconds
diff 631.892603 milliSeconds
time per iteration 631.892603 microseconds
time per addTail/removeHead 0.315946 microseconds
Time std::list test locked
diff 788.837800 milliSeconds
time per iteration 788.837800 microseconds
time per addTail/removeHead 0.394419 microseconds
diff 791.255075 milliSeconds
time per iteration 791.255075 microseconds
time per addTail/removeHead 0.395628 microseconds
+14
View File
@@ -0,0 +1,14 @@
structure request
string fieldList value,timeStamp
structure request
string fieldList value,timeStamp
string extra junk
structure parent
structure child1
string value bla
structure child2
string value bla
field: totalConstruct 107 totalDestruct 101 ACTIVE 6
pvField: totalConstruct 8 totalDestruct 8
linkedListNode: totalConstruct 5 totalDestruct 5
linkedList: totalConstruct 1 totalDestruct 1
+12
View File
@@ -0,0 +1,12 @@
eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
if $running_under_some_shell; # testPVAppend.pl
use Env;
system ("rm testPVAppend");
system ("rm testPVAppendDiff");
system ("../bin/${EPICS_HOST_ARCH}/testPVAppend testPVAppend");
system ("diff testPVAppend testPVAppendGold >> testPVAppendDiff");
if(-z "testPVAppendDiff") {
print "testPVAppend OK\n";
} else {
print "testPVAppend Failed\n";
}
View File
+14
View File
@@ -0,0 +1,14 @@
structure request
string fieldList value,timeStamp
structure request
string fieldList value,timeStamp
string extra junk
structure parent
structure child1
string value bla
structure child2
string value bla
field: totalConstruct 107 totalDestruct 101 ACTIVE 6
pvField: totalConstruct 8 totalDestruct 8
linkedListNode: totalConstruct 5 totalDestruct 5
linkedList: totalConstruct 1 totalDestruct 1
+1 -1
View File
@@ -283,7 +283,7 @@ structure string
timeStamp timeStamp
long secondsPastEpoch 0
int nanoSeconds 0
field: totalConstruct 136 totalDestruct 136
field: totalConstruct 136 totalDestruct 135 ACTIVE 1
pvField: totalConstruct 281 totalDestruct 281
linkedListNode: totalConstruct 5 totalDestruct 5
linkedList: totalConstruct 1 totalDestruct 1
+4
View File
@@ -0,0 +1,4 @@
286c286
< field: totalConstruct 136 totalDestruct 135 ACTIVE 1
---
> field: totalConstruct 136 totalDestruct 136
+1 -1
View File
@@ -1 +1 @@
time per call 37.293004 microseconds
time per call 40.057018 microseconds
+4 -4
View File
@@ -1,5 +1,5 @@
current 1294842528 236065826 milliSec 1294842528236
2011.01.12 09:28:48 236065826 nanoSeconds isDst false
current 1295462802 840097682 milliSec 1295462802840
2011.01.19 13:46:42 840097682 nanoSeconds isDst false
fromTime_t
current 1294842528 0 milliSec 1294842528000
2011.01.12 09:28:48 0 nanoSeconds isDst false
current 1295462802 0 milliSec 1295462802000
2011.01.19 13:46:42 0 nanoSeconds isDst false
+6 -6
View File
@@ -1,6 +1,6 @@
one requested 0.400000 diff 0.400196 seconds
two requested 0.200000 diff 0.200182 seconds
one requested 0.200000 diff 0.200248 seconds
two requested 0.400000 diff 0.400307 seconds
one requested 0.000000 diff 0.000033 seconds
two requested 0.000000 diff 0.000049 seconds
one requested 0.400000 diff 0.400263 seconds
two requested 0.200000 diff 0.200168 seconds
one requested 0.200000 diff 0.200136 seconds
two requested 0.400000 diff 0.400176 seconds
one requested 0.000000 diff 0.000011 seconds
two requested 0.000000 diff 0.000018 seconds