Exemple #1
0
        void RenderTraceInfoRow(Table table, InfoTraceData i, int pos)
        {
            if (i == null)
            {
                return;
            }

            string open, close;

            open = close = String.Empty;
            if ((bool)i.IsWarning)
            {
                open  = "<font color=\"Red\">";
                close = "</font>";
            }

            string t1, t2;

#if !TARGET_J2EE
            if (i.TimeSinceFirst == 0)
            {
                t1 = t2 = String.Empty;
            }
            else
#endif
            {
                t1 = i.TimeSinceFirst.ToString("0.000000");
                t2 = i.TimeSinceLast.ToString("0.000000");
            }

            RenderAltRow(table, pos, open + (string)i.Category + close,
                         open + (string)i.Message + close, t1, t2);
        }
Exemple #2
0
        void RenderTraceInfoRow(Table table, InfoTraceData i, int pos)
        {
            if (i == null)
            {
                return;
            }

            string open, close;

            open = close = String.Empty;
            if ((bool)i.IsWarning)
            {
                open  = "<span style=\"color:red\">";
                close = "</span>";
            }

            string t1, t2;

#if !TARGET_J2EE
            if (i.TimeSinceFirst == 0)
            {
                t1 = t2 = String.Empty;
            }
            else
#endif
            {
                t1 = i.TimeSinceFirst.ToString("0.000000");
                if (i.TimeSinceLast >= 0.1)
                {
                    t2 = "<span style=\"color:red;font-weight:bold\">" + i.TimeSinceLast.ToString("0.000000") + "</span>";
                }
                else
                {
                    t2 = i.TimeSinceLast.ToString("0.000000");
                }
            }

            RenderAltRow(table, pos, open + (string)i.Category + close,
                         open + (string)i.Message + close, t1, t2);
        }
Exemple #3
0
		void RenderTraceInfoRow (Table table, InfoTraceData i, int pos)
		{
			if (i == null)
				return;
			
			string open, close;
			open = close = String.Empty;
			if ((bool) i.IsWarning) {
				open = "<span style=\"color:red\">";
				close = "</span>";
			}

			string t1, t2;
#if !TARGET_J2EE
			if (i.TimeSinceFirst == 0) {
				t1 = t2 = String.Empty;
			} else
#endif
			{
				t1 = i.TimeSinceFirst.ToString ("0.000000");
				if (i.TimeSinceLast >= 0.1)
					t2 = "<span style=\"color:red;font-weight:bold\">" + i.TimeSinceLast.ToString ("0.000000") + "</span>";
				else
					t2 = i.TimeSinceLast.ToString ("0.000000");
			}
			
			RenderAltRow (table, pos, open + (string) i.Category + close,
				      open + (string) i.Message + close, t1, t2);
		}