[chronojump] On capture print less stuff to logB to not saturate slow machines
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On capture print less stuff to logB to not saturate slow machines
- Date: Mon, 3 Aug 2015 15:17:25 +0000 (UTC)
commit b6fbdf56ea33ca3909e01d983ee19af758be937a
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Aug 3 17:16:30 2015 +0200
On capture print less stuff to logB to not saturate slow machines
src/gui/encoderTreeviews.cs | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoderTreeviews.cs b/src/gui/encoderTreeviews.cs
index 03260df..4250f79 100644
--- a/src/gui/encoderTreeviews.cs
+++ b/src/gui/encoderTreeviews.cs
@@ -38,6 +38,8 @@ public partial class ChronoJumpWindow
//capture has single and multiple selection in order to save curves... Analyze only shows data.
private int createTreeViewEncoderCapture(List<string> contents)
{
+ LogB.Debug("At createTreeViewEncoderCapture");
+
bool showStartAndDuration = encoderCaptureOptionsWin.check_show_start_and_duration.Active;
string [] columnsString = {
@@ -63,7 +65,13 @@ public partial class ChronoJumpWindow
bool headers = true;
foreach(string line in contents)
{
- LogB.Debug(line);
+ /*
+ * don't print this because on capture, if 100 repetitions are captured
+ * it will be printing 97 lines, 98, 99, 100 (with a small time)
+ * can be too much for certain computers
+ */
+ //LogB.Debug(line);
+
if(headers) {
headers = false;
continue;
@@ -76,7 +84,13 @@ public partial class ChronoJumpWindow
string [] cells = line.Split(new char[] {','});
cells = fixDecimals(cells);
- LogB.Error(Util.StringArrayToString(cells, ":"));
+
+ /*
+ * don't print this because on capture, if 100 repetitions are captured
+ * it will be printing 97 lines, 98, 99, 100 (with a small time)
+ * can be too much for certain computers
+ */
+ //LogB.Error(Util.StringArrayToString(cells, ":"));
encoderCaptureCurves.Add (new EncoderCurve (
false, //user need to mark to save
them
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]