Added code to Track DB Usage. Uses the StackTrace to find which object and method are being used when the database is being used.

Added Profile debug
This commit is contained in:
Rich
2015-01-19 20:50:15 +00:00
parent 29ffd0329c
commit 25719bf869
2 changed files with 41 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ using System.Configuration;
using System.IO;
using System.ComponentModel;
using System.Collections.Generic;
using Volian.Base.Library;
namespace VEPROMS.CSLA.Library
{
public delegate void ItemInfoEvent(object sender);
@@ -313,11 +314,13 @@ namespace VEPROMS.CSLA.Library
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
//int profileDepth = ProfileTimer.Push(">>>> ItemParts");
CanReadProperty("ItemParts", true);
if (_ItemPartCount < 0 || (_ItemPartCount > 0 && _ItemParts == null))
_ItemParts = PartInfoList.GetByItemID(_ItemID);
if (_ItemPartCount < 0)
_ItemPartCount = _ItemParts.Count;
//ProfileTimer.Pop(profileDepth);
return _ItemParts;
}
}