Esempio n. 1
0
        public GcData [] GetGcData(int generation)
        {
            lazy_reader.BaseStream.Seek(gc_pos [generation], SeekOrigin.Begin);

            int length;

            length = lazy_reader.ReadInt32();

            GcData [] gc_data;
            gc_data = new GcData [length];
            for (int i = 0; i < length; ++i)
            {
                uint bt_code;
                bt_code = lazy_reader.ReadUInt32();
                gc_data [i].Backtrace = backtraces [bt_code];
                gc_data [i].ObjectStats.Read(lazy_reader);
            }

            return(gc_data);
        }
Esempio n. 2
0
		public GcData [] GetGcData (int generation)
		{
			lazy_reader.BaseStream.Seek (gc_pos [generation], SeekOrigin.Begin);

			int length;
			length = lazy_reader.ReadInt32 ();
			
			GcData [] gc_data;
			gc_data = new GcData [length];
			for (int i = 0; i < length; ++i) {
				uint bt_code;
				bt_code = lazy_reader.ReadUInt32 ();
				gc_data [i].Backtrace = backtraces [bt_code];
				gc_data [i].ObjectStats.Read (lazy_reader);
			}

			return gc_data;
		}