Skip to content

Commit

Permalink
dump tool: print using toString
Browse files Browse the repository at this point in the history
add usage all/all
  • Loading branch information
kosyloa committed Oct 24, 2023
1 parent 35c771d commit d1379d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "ScheduleSample"
argument = "Dump"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
Expand Down Expand Up @@ -88,7 +88,7 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "Dump tapeK2.tape[speed=max] all all -q -t ios_tapeK2.tape"
argument = "Dump tapeK2.tape[speed=max] all all -t ios_tapeK2.tape -q"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
Expand Down
6 changes: 5 additions & 1 deletion Samples/PerfTestCL/DumpTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class DumpTool: ToolsCommand {
for Candle event specify symbol with aggregation like in ""AAPL{{=d}}""
sample: Dump demo.dxfeed.com:7300 quote AAPL,IBM,ETH/USD:GDAX -t "tape_test.txt[format=text]"
sampe: Dump tapeK2.tape[speed=max] all all -q -t ios_tapeK2.tape
"""
var publisher: DXPublisher?
var isQuite = false
Expand Down Expand Up @@ -103,7 +105,9 @@ extension DumpTool: DXEventListener {
func receiveEvents(_ events: [DXFeedFramework.MarketEvent]) {
do {
if !isQuite {
print(events)
events.forEach { event in
print(event.toString())
}
}
count += events.count
try publisher?.publish(events: events)
Expand Down

0 comments on commit d1379d2

Please sign in to comment.