Esempio n. 1
0
        private string GeneratePostArgs(MutableObject mutable)
        {
            var postArgs = "{ \"config\" : [ \"";

            postArgs += "itrace,regs,disasm";
            //postArgs += IncludeITrace.GetFirstValue(mutable) ? "itrace," : "";
            //postArgs += IncludeRegs.GetFirstValue(mutable) ? "regs," : "";
            //postArgs += IncludeDisasm.GetFirstValue(mutable) ? "disasm," : "";
            //postArgs = postArgs.TrimEnd(new char[] { ',' });
            //postArgs += "\"";
            postArgs += IncludeMemtrace.GetFirstValue(mutable) ? "\", \"memtrace" : "";

            var skipCount = Skip.GetFirstValue(mutable);
            var maxCount  = Max.GetFirstValue(mutable);

            if (skipCount != -1)
            {
                postArgs += "\", \"skip," + skipCount;
            }
            if (maxCount != -1)
            {
                postArgs += "\", \"max," + maxCount;
            }

            postArgs += "\" ] }";
            return(postArgs);
        }