debugging exchange function in pool.cc

This commit is contained in:
tripun 2014-07-01 18:00:36 +05:30
parent 0c97e80295
commit f15d9be613

View file

@ -9,126 +9,87 @@ commodity EUR
C C
-V bal --debug amount.parse -V bal --debug amount.parse
0ms [INFO] Ledger starting 0ms [INFO] Ledger starting
2ms [DEBUG] Rational parsed = 1
3ms [DEBUG] amount.cc: parse
3ms [DEBUG] amount.cc: parse
3ms [DEBUG] Rational parsed = 1 3ms [DEBUG] Rational parsed = 1
3ms [DEBUG] amount.cc: parse 3ms [DEBUG] amount.cc: parse
3ms [DEBUG] amount.cc: parse 3ms [DEBUG] amount.cc: parse
4ms [DEBUG] Rational parsed = 1
4ms [DEBUG] amount.cc: parse
4ms [DEBUG] amount.cc: parse
5ms [INFO] Parsing file "test.txt" 5ms [INFO] Parsing file "test.txt"
5ms [DEBUG] Rational parsed = 1000 5ms [DEBUG] Rational parsed = 1000
6ms [DEBUG] amount.cc: parse 6ms [DEBUG] amount.cc: parse
6ms [DEBUG] precision directive called 2 6ms [DEBUG] precision directive called 2
7ms [DEBUG] amount.cc: parse 6ms [DEBUG] amount.cc: parse
7ms [DEBUG] Rational parsed = 5061/500 7ms [DEBUG] Rational parsed = 5061/500
7ms [DEBUG] amount.cc: parse 7ms [DEBUG] amount.cc: parse
7ms [DEBUG] amount.cc: parse 7ms [DEBUG] amount.cc: parse
7ms [DEBUG] Rational parsed = 20123/1000 7ms [DEBUG] Rational parsed = 20123/1000
8ms [DEBUG] amount.cc: parse 7ms [DEBUG] amount.cc: parse
8ms [DEBUG] amount.cc:print
8ms [DEBUG] amount.cc:in place round commodity EUR value 20.24 8ms [DEBUG] amount.cc:in place round commodity EUR value 20.24
9ms [DEBUG] amount.cc:print
9ms [DEBUG] amount.cc:in place round commodity EUR value 20.12 9ms [DEBUG] amount.cc:in place round commodity EUR value 20.12
9ms [DEBUG] amount.cc:print 11ms [DEBUG] amount.cc:+= value before 20.24
9ms [DEBUG] amount.cc:+= value before 20.24 11ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12
9ms [DEBUG] amount.cc:print 11ms [DEBUG] pool.cc: cost_breakdown_t exchange
10ms [DEBUG] amount.cc:print
10ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12
10ms [DEBUG] amount.cc: is_zero
11ms [DEBUG] amount.cc: is_zero 11ms [DEBUG] amount.cc: is_zero
12ms [INFO] Read journal file (6ms) 12ms [DEBUG] pool.cc: void exchange
12ms [INFO] Found 1 transactions 12ms [DEBUG] pool.cc: cost_breakdown_t exchange
12ms [DEBUG] amount.cc: parse 13ms [DEBUG] amount.cc: is_zero
13ms [DEBUG] amount.cc: parse 13ms [DEBUG] pool.cc: void exchange
14ms [DEBUG] post.cc:get_amount wrapper in lookup 14ms [INFO] Read journal file (9ms)
15ms [DEBUG] post.cc:get_amount 14ms [INFO] Found 1 transactions
15ms [DEBUG] filters.cc:calc_posts 15ms [DEBUG] amount.cc: parse
15ms [DEBUG] post.cc:get_amount 15ms [DEBUG] amount.cc: parse
15ms [DEBUG] filters.cc:calc_posts 17ms [DEBUG] post.cc:get_amount wrapper in lookup
15ms [DEBUG] post.cc:get_amount 17ms [DEBUG] post.cc:get_amount
18ms [DEBUG] account.cc: total 18ms [DEBUG] filters.cc:calc_posts
19ms [DEBUG] amount.cc:print 18ms [DEBUG] post.cc:get_amount
20ms [DEBUG] amount.cc:in place round commodity EUR value 20.24 18ms [DEBUG] filters.cc:calc_posts
20ms [DEBUG] amount.cc:print 18ms [DEBUG] post.cc:get_amount
20ms [DEBUG] amount.cc:in place round commodity EUR value 20.12 21ms [DEBUG] account.cc: total
20ms [DEBUG] amount.cc:print 23ms [DEBUG] amount.cc:in place round commodity EUR value 20.24
20ms [DEBUG] balance.cc: amount added, value before 20.24 23ms [DEBUG] amount.cc:in place round commodity EUR value 20.12
21ms [DEBUG] amount.cc:print 23ms [DEBUG] balance.cc: amount added, value before 20.24
21ms [DEBUG] amount.cc:+= value before 20.24 24ms [DEBUG] amount.cc:+= value before 20.24
21ms [DEBUG] amount.cc:print 24ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12
21ms [DEBUG] amount.cc:print 24ms [DEBUG] balance.cc: amount added, value after 40.36
21ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12 25ms [DEBUG] amount.cc: is_zero
21ms [DEBUG] amount.cc:print 25ms [DEBUG] account.cc: total
21ms [DEBUG] balance.cc: amount added, value after 40.36 25ms [DEBUG] amount.cc: is_zero
22ms [DEBUG] amount.cc: is_zero 26ms [DEBUG] format.cc:real_calc formatting
22ms [DEBUG] account.cc: total 28ms [DEBUG] amount.cc:+= value before 20
23ms [DEBUG] amount.cc: is_zero 28ms [DEBUG] amount.cc:+= value after 20 2nd amt 0
23ms [DEBUG] format.cc:real_calc formatting 29ms [DEBUG] amount.cc:in place round commodity EUR value 20.24
24ms [DEBUG] amount.cc:print 30ms [DEBUG] amount.cc:in place round commodity EUR value 20.12
24ms [DEBUG] amount.cc:+= value before 20 30ms [DEBUG] balance.cc: amount added, value before 20.24
24ms [DEBUG] amount.cc:print 31ms [DEBUG] amount.cc:+= value before 20.24
25ms [DEBUG] amount.cc:print 31ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12
25ms [DEBUG] amount.cc:+= value after 20 2nd amt 0 31ms [DEBUG] balance.cc: amount added, value after 40.36
25ms [DEBUG] amount.cc:print 33ms [DEBUG] amount.cc: is_zero
26ms [DEBUG] amount.cc:in place round commodity EUR value 20.24
26ms [DEBUG] amount.cc:print
26ms [DEBUG] amount.cc:in place round commodity EUR value 20.12
27ms [DEBUG] amount.cc:print
27ms [DEBUG] balance.cc: amount added, value before 20.24
27ms [DEBUG] amount.cc:print
27ms [DEBUG] amount.cc:+= value before 20.24
27ms [DEBUG] amount.cc:print
27ms [DEBUG] amount.cc:print
27ms [DEBUG] amount.cc:+= value after 40.36 2nd amt 20.12
28ms [DEBUG] amount.cc:print
28ms [DEBUG] balance.cc: amount added, value after 40.36
28ms [DEBUG] amount.cc: is_zero
28ms [DEBUG] amount.cc:print
40.36 EUR A 40.36 EUR A
30ms [DEBUG] format.cc:real_calc formatting 35ms [DEBUG] format.cc:real_calc formatting
31ms [DEBUG] amount.cc:print 36ms [DEBUG] amount.cc:+= value before 20
31ms [DEBUG] amount.cc:+= value before 20
31ms [DEBUG] amount.cc:print
31ms [DEBUG] amount.cc:print
31ms [DEBUG] amount.cc:+= value after 20 2nd amt 0
32ms [DEBUG] amount.cc: is_zero
32ms [DEBUG] amount.cc: is_zero
33ms [DEBUG] amount.cc:print
-40.36 EUR C
33ms [DEBUG] format.cc:real_calc formatting
--------------------
34ms [DEBUG] format.cc:real_calc formatting
35ms [DEBUG] amount.cc:print
35ms [DEBUG] amount.cc:+= value before 20
35ms [DEBUG] amount.cc:print
35ms [DEBUG] amount.cc:print
36ms [DEBUG] amount.cc:+= value after 20 2nd amt 0 36ms [DEBUG] amount.cc:+= value after 20 2nd amt 0
36ms [DEBUG] amount.cc:print 37ms [DEBUG] amount.cc: is_zero
37ms [DEBUG] amount.cc:in place round commodity EUR value 20.24 37ms [DEBUG] amount.cc: is_zero
37ms [DEBUG] amount.cc:print -40.36 EUR C
37ms [DEBUG] balance.cc: amount added, value before -40.36 38ms [DEBUG] format.cc:real_calc formatting
37ms [DEBUG] amount.cc:print --------------------
37ms [DEBUG] amount.cc:+= value before -40.36 39ms [DEBUG] format.cc:real_calc formatting
37ms [DEBUG] amount.cc:print 42ms [DEBUG] amount.cc:+= value before 20
37ms [DEBUG] amount.cc:print 43ms [DEBUG] amount.cc:+= value after 20 2nd amt 0
38ms [DEBUG] amount.cc:+= value after -20.12 2nd amt 20.24 44ms [DEBUG] amount.cc:in place round commodity EUR value 20.24
38ms [DEBUG] amount.cc:print 45ms [DEBUG] balance.cc: amount added, value before -40.36
38ms [DEBUG] balance.cc: amount added, value after -20.12 45ms [DEBUG] amount.cc:+= value before -40.36
38ms [DEBUG] amount.cc:print 45ms [DEBUG] amount.cc:+= value after -20.12 2nd amt 20.24
39ms [DEBUG] amount.cc:in place round commodity EUR value 20.12 45ms [DEBUG] balance.cc: amount added, value after -20.12
39ms [DEBUG] amount.cc:print 45ms [DEBUG] amount.cc:in place round commodity EUR value 20.12
39ms [DEBUG] balance.cc: amount added, value before -20.12 45ms [DEBUG] balance.cc: amount added, value before -20.12
39ms [DEBUG] amount.cc:print 46ms [DEBUG] amount.cc:+= value before -20.12
39ms [DEBUG] amount.cc:+= value before -20.12 46ms [DEBUG] amount.cc:+= value after 0 2nd amt 20.12
39ms [DEBUG] amount.cc:print 46ms [DEBUG] balance.cc: amount added, value after 0
39ms [DEBUG] amount.cc:print
40ms [DEBUG] amount.cc:+= value after 0 2nd amt 20.12
40ms [DEBUG] amount.cc:print
40ms [DEBUG] balance.cc: amount added, value after 0
0 0
40ms [INFO] Finished executing command (26ms) 46ms [INFO] Finished executing command (29ms)
41ms [INFO] Ledger ended 47ms [INFO] Ledger ended