Add debug configuration for market data

This commit is contained in:
Eric Harding committed 2017-09-29 09:26:41 -04:00
1 parent 85e775f510
commit 45dd1005da
3 files changed
+17 -7

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ void ConfigurationState::initialize_builtins()
// sys.set_build_number(BUILD_NUMBER);
sys.set_build_number(0);
sys.set_os_user(os::username());
#ifdef DEBUG
#ifndef NDEBUG
sys.set_build_type("debug");
#endif
sys.set_config_host(_host);
+15 -5
View File
@@ -14,6 +14,21 @@ PublisherNamespace {
# }
# }
CMEOptions {
rule: "System.build_type == 'debug'"
value {
feed_engine {
name: "default"
udp_socket_buffer_size: 425984
}
channel {
id: "*"
feed_engine: "default"
use_tcp_replay: false
}
}
}
CMEOptions {
value {
channel {
@@ -35,11 +50,6 @@ CMEOptions {
id: "310"
feed_engine: "driver"
}
# Uncomment this to try a separate threadpool for options handlers (will use more total cpu)
#channel {
# id: "*"
# feed_engine: "default"
#}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ namespace utils {
template<typename To, typename From>
inline To checked_cast(From& f) {
#ifdef DEBUG
#ifndef NDEBUG
return dynamic_cast<To>(f);
#else
return static_cast<To>(f);