public bool VerifyEquals(PipCacheMissEventData expected, PipCacheMissEventData actual) { XAssert.AreEqual(expected.PipId, actual.PipId); XAssert.AreEqual(expected.CacheMissType, actual.CacheMissType); return(true); }
/// <nodoc /> public static PipCacheMissEvent ToPipCacheMissEvent(this PipCacheMissEventData data, uint workerID) { return(new PipCacheMissEvent() { WorkerID = workerID, PipID = data.PipId.Value, CacheMissType = (PipCacheMissType)data.CacheMissType }); }
/// <nodoc /> public static Xldb.PipCacheMissEvent ToPipCacheMissEvent(this PipCacheMissEventData data, uint workerID) { var Uuid = Guid.NewGuid().ToString(); return(new Xldb.PipCacheMissEvent() { UUID = Uuid, WorkerID = workerID, PipID = data.PipId.Value, CacheMissType = (Xldb.PipCacheMissType)data.CacheMissType }); }
/// <summary> /// Override event to capture its data and store it in the protobuf /// </summary> public override void PipCacheMiss(PipCacheMissEventData data) { var value = data.ToPipCacheMissEvent(WorkerID.Value); var key = new EventKey { EventTypeID = Xldb.Proto.ExecutionEventId.PipCacheMiss, PipId = data.PipId.Value }; var keyArr = key.ToByteArray(); var valueArr = value.ToByteArray(); WriteToDb(keyArr, valueArr, XldbDataStore.EventColumnFamilyName); AddToDbStorageDictionary(DBStoredTypes.PipCacheMiss, keyArr.Length + valueArr.Length); }
/// <summary> /// Pip cache miss /// </summary> public virtual void PipCacheMiss(PipCacheMissEventData data) { ReportUnhandledEvent(data); }