Esempio n. 1
0
 private void RemoteTargetMemoryTraceStreamAdd(SledMemoryTraceStream mt)
 {
     m_trace.Add(mt.Order, mt);
     m_bDirty = true;
 }
Esempio n. 2
0
        private static SledMemoryTraceStream Create(char what, int oldSize, int newSize, string oldAddres, string newAddress)
        {
            var stream =
                new SledMemoryTraceStream
                    {
                        Order = s_iNumMemoryTrace++,
                        What = (what == 'a'
                                    ? Localization.SledLuaMemoryTraceAlloc
                                    : (what == 'r'
                                           ? Localization.SledLuaMemoryTraceRealloc
                                           : Localization.SledLuaMemoryTraceDealloc)),
                        OldSize = oldSize,
                        NewSize = newSize,
                        OldAddress = oldAddres,
                        NewAddress = newAddress
                    };

            return stream;
        }