Added more perf logging statements.

This commit is contained in:
Pedro Pinto committed 2018-12-12 14:04:53 +00:00
1 parent c4910f011f
commit a94d753fdc
7 files changed
+59 -8

No files matched your search

+14 -2
View File
@@ -358,8 +358,8 @@ void NativeOrder::on_activate(Price p, Quantity q,
// if we are here we are good.
auto post_checks_log = services.log_scope(
trace, "NativeOrder::on_activate::post_checks", key().value());
services.log(
trace, "NativeOrder::on_activate::post_checks:1", key().value());
// subscribe to usefull events
me->services->subscribe_to_exe_report(
*me->session_services, key(),
@@ -371,6 +371,8 @@ void NativeOrder::on_activate(Price p, Quantity q,
*me->session_services,
[this](auto const &gw) { this->on_gateway_status(gw); });
services.log(
trace, "NativeOrder::on_activate::post_checks:2", key().value());
// send out order
auto &encoding = me->create_encoding;
@@ -390,15 +392,25 @@ void NativeOrder::on_activate(Price p, Quantity q,
break;
}
services.log(
trace, "NativeOrder::on_activate::post_checks:3", key().value());
me->create_quantity_bm =
encoding.overwrite(me->create_quantity_bm, q.value(), quantity_sz());
auto const &ts = services.get_time_str();
me->create_transact_time_bm = encoding.overwrite(
me->create_transact_time_bm, &ts.value()[0], ts.value().size());
services.log(
trace, "NativeOrder::on_activate::post_checks:4", key().value());
me->services->queue_fix(*me->session_services,
jetfix::MessageTypes::NewOrderSingle,
me->create_encoding, trace);
services.log(
trace, "NativeOrder::on_activate::post_checks:5", key().value());
me->services->governor(*me->session_services).record_sent();
services.log(
trace, "NativeOrder::on_activate::post_checks:5", key().value());
me->state.set_status(ORDER_STATUS_PENDING_WORKING);
LOG(OrderMan, Info, "Sent new order with key {} to gateway",