using System.Collections.Generic;
namespace BizHawk.Emulation.Common
{
///
/// This service allows the core to dump a cpu trace to the client
/// If available the Trace Logger tool will be available on the client
///
public interface ITraceable : IEmulatorService
{
bool Enabled { get; set; }
///
/// The header that would be used by a trace logger
///
string Header { get; set; }
///
/// The current log of cpu instructions
///
IEnumerable Contents { get; }
///
/// Takes the current log of cpu instructions, when doing so, it will clear the contents from the buffer
///
IEnumerable TakeContents();
void Put(TraceInfo content);
}
public class TraceInfo
{
public string Disassembly { get; set; }
public string RegisterInfo { get; set; }
}
}