diff --git a/doc/user/CMakeDeps.cmake b/doc/user/CMakeDeps.cmake new file mode 100644 index 000000000..00bd7e37b --- /dev/null +++ b/doc/user/CMakeDeps.cmake @@ -0,0 +1 @@ +set(sources /home/ppinto/Dropbox/bts/spark/doc/user/build.sh;/home/ppinto/Dropbox/bts/spark/doc/user/mkdocs.yml;bts-help-theme/404.html;bts-help-theme/base.html;bts-help-theme/content.html;bts-help-theme/css/base.css;bts-help-theme/css/bts.css;bts-help-theme/css/font-awesome.min.css;bts-help-theme/css/highlight.css;bts-help-theme/css/local.css;bts-help-theme/fonts/fontawesome-webfont.eot;bts-help-theme/fonts/glyphicons-halflings-regular.eot;bts-help-theme/img/favicon.ico;bts-help-theme/js/base.js;bts-help-theme/js/bootstrap-3.0.3.min.js;bts-help-theme/js/highlight.pack.js;bts-help-theme/js/jquery-1.10.2.min.js;bts-help-theme/keyboard-modal.html;bts-help-theme/main.html;bts-help-theme/nav-sub.html;bts-help-theme/nav.html;bts-help-theme/search-modal.html;bts-help-theme/toc.html;docs/Help.md;docs/Launcher.md;docs/Logging-In-to-the-System.md;docs/Market.md;docs/My-Windows.md;docs/Settings.md;docs/Spreader.md;docs/Trading.md;docs/images/image1.png;docs/images/image10.png;docs/images/image11.png;docs/images/image12.png;docs/images/image13.png;docs/images/image14.png;docs/images/image15.png;docs/images/image16.png;docs/images/image17.png;docs/images/image18.png;docs/images/image19.png;docs/images/image2.png;docs/images/image20.png;docs/images/image21.png;docs/images/image22.png;docs/images/image23.png;docs/images/image24.png;docs/images/image25.png;docs/images/image26.png;docs/images/image27.png;docs/images/image28.png;docs/images/image29.png;docs/images/image3.png;docs/images/image30.png;docs/images/image31.png;docs/images/image32.png;docs/images/image33.png;docs/images/image34.png;docs/images/image35.png;docs/images/image36.png;docs/images/image37.png;docs/images/image38.png;docs/images/image39.png;docs/images/image4.png;docs/images/image40.png;docs/images/image41.png;docs/images/image42.png;docs/images/image43.png;docs/images/image44.png;docs/images/image45.png;docs/images/image46.png;docs/images/image47.png;docs/images/image48.png;docs/images/image49.png;docs/images/image5.png;docs/images/image50.png;docs/images/image51.png;docs/images/image52.png;docs/images/image53.png;docs/images/image54.png;docs/images/image55.png;docs/images/image56.png;docs/images/image57.png;docs/images/image58.png;docs/images/image59.png;docs/images/image6.png;docs/images/image60.png;docs/images/image61.png;docs/images/image62.png;docs/images/image63.png;docs/images/image64.png;docs/images/image65.png;docs/images/image66.png;docs/images/image67.png;docs/images/image68.png;docs/images/image69.png;docs/images/image7.png;docs/images/image70.png;docs/images/image71.png;docs/images/image72.png;docs/images/image73.png;docs/images/image74.png;docs/images/image76.png;docs/images/image8.png;docs/images/image9.png;docs/index.md;docs/release_notes.md) \ No newline at end of file diff --git a/doc/user/CMakeLists.txt b/doc/user/CMakeLists.txt index 1dfa4d6c5..60f50698f 100644 --- a/doc/user/CMakeLists.txt +++ b/doc/user/CMakeLists.txt @@ -16,6 +16,7 @@ set(DOC_GLOBS favicon.ico ) file (GLOB_RECURSE All_Deps RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${DOC_GLOBS}) +set (All_Deps ${All_Deps} ${CMAKE_CURRENT_SOURCE_DIR}/build.sh ${CMAKE_CURRENT_SOURCE_DIR}/mkdocs.yml) update_deps_file("${All_Deps}") # END DEPENDENCIES diff --git a/doc/user/build.sh b/doc/user/build.sh index 8cab9f9f8..a961f6060 100644 --- a/doc/user/build.sh +++ b/doc/user/build.sh @@ -1,2 +1,11 @@ #!/bin/bash -python -m mkdocs build -d $1 \ No newline at end of file +tmpfile=$(mktemp /tmp/quiet_build_log.XXXX) +python -m mkdocs build -d $1 >$tmpfile 2>&1 +if [ $? -eq 0 ] +then + rm $tmpfile + exit 0 +else + cat $tmpfile + exit 1 +fi diff --git a/docker/linux b/docker/linux index aedfd79e0..8ee969259 160000 --- a/docker/linux +++ b/docker/linux @@ -1 +1 @@ -Subproject commit aedfd79e025ddfff2af16f9366776f0822b1fc0e +Subproject commit 8ee9692597d9e59adf0a3ab77610b711892f79a6 diff --git a/src/data_files/files/perf_trace/index.html b/src/data_files/files/perf_trace/index.html index 1367cca36..3e0e930c8 100644 --- a/src/data_files/files/perf_trace/index.html +++ b/src/data_files/files/perf_trace/index.html @@ -1,14 +1,14 @@ - BTS Spark Socket To Socket Requote Times + BTS Spark Socket To Socket Requote and Hedge Times @@ -47,7 +57,7 @@
-

Socket To Socket Requote Times

+

Socket To Socket Latencies

diff --git a/src/data_files/files/perf_trace/main.js b/src/data_files/files/perf_trace/main.js index e22374aa7..4f2a47030 100644 --- a/src/data_files/files/perf_trace/main.js +++ b/src/data_files/files/perf_trace/main.js @@ -2,7 +2,9 @@ $( document ).ready(function (){ let urlParams = new URLSearchParams(window.location.search); num_rows = urlParams.get('r'); let show_rows = urlParams.get('showrows'); + let rows_of = urlParams.get('rowsof'); + //let trace_data_url = "./perf_trace_data"; let trace_data_url = "/perf_trace_data"; if(num_rows != null) { trace_data_url += "/" + num_rows; @@ -15,14 +17,46 @@ $( document ).ready(function (){ error: ajax_err, crossDomain: true }).done(function(result) { + if(show_rows != null) { - list_rows(show_rows, result); + if(rows_of === "quot") { + list_rows(show_rows, rows_of, result.requotes); + } + else { + list_rows(show_rows, rows_of, result.hedges); + } + } else { - if(result.length > 0){ - let summary_info = "

Host: " + result[0].host + "

"; + if((result.requotes.length + result.hedges.length) > 0) { + let useful_result = (result.requotes.length > 0 ? result.requotes : result.hedges); + let less_useful_result = (result.requotes.length === 0 ? result.requotes : result.hedges); + + let summary_info = "

Host: " + useful_result[0].host + "


"; + $("#output").html(summary_info); - $(result).each(display_session); + + let whole_result = result.requotes.concat(result.hedges); + let unique_sessions = whole_result.filter(function(value, index, self){ + return self.find(function(elm){ + return elm.session_name === value.session_name; + }); + }); + + $(unique_sessions).each(function (index, sess_val){ + let r = result.requotes.find(function(elm){ + return elm.session_name === sess_val.session_name; + }); + + let h = result.hedges.find(function(elm){ + return elm.session_name === sess_val.session_name; + }); + + display_session(r, h); + }); + } + else { + } } @@ -30,29 +64,30 @@ $( document ).ready(function (){ }); -function list_rows(show_rows, data) { +function list_rows(show_rows, rows_of, data) { $.each(data, function(index, value){ if(value.session_name === show_rows){ let summary_info = ""; - summary_info += "" + - "" + - "" + - "" + - "" + - ""; + + summary_info += "" + $.each(value.rows[0], function(key, unval){ + if(key !== "trace_time" && key !== "total") + { + summary_info +=""; + } + }); + summary_info += ""; $.each(value.rows, function(key, val) { summary_info += ""; - console.log(val); - - summary_info += "" + - "" + - "" + - "" + - "" + - ""; - - + summary_info += ""; + $.each(val, function(key, uval){ + if(key !== "trace_time" && key !== "total") + { + summary_info += ""; + } + }); + summary_info += ""; summary_info += ""; }); summary_info += "
Trace TimeOrder KeyMDSpreaderFixTotal
Trace Time" + format_title(key) + "Total
" + val.trace_time + "" + val.order_key + "" + val.md + "" + val.spreader + "" + val.fix + "" + val.total + "" + val.trace_time + "" + uval + "" + val.total + "
"; @@ -77,7 +112,26 @@ function ajax_err (jqXHR, textStatus,errorThrown) { function first_upper (str) { let ret_str = str[0].toUpperCase() + str.substring(1, str.length); - return ret_str + return ret_str; +} + +function format_title (str) +{ + let ret_str = ""; + + for(let i=0; i < str.length; i++) { + if(i === 0 || str[i-1] === "_") { + ret_str += str[i].toUpperCase(); + } + else if(str[i] === "_") { + ret_str += " "; + } + else { + ret_str += str[i]; + } + } + + return ret_str; } function generate_histogram(id, data) @@ -95,70 +149,143 @@ function generate_histogram(id, data) Plotly.newPlot(id, plot_data); } -function display_session (index, value) { - //console.log(value); - let session_info = "