Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ObjectType 'TableExtension' #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EtwPerformanceProfiler/App Objects/TAB50000.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ OBJECT Table 50000 Performance Profiler Events
{ 2 ; ;Session ID ;Integer }
{ 3 ; ;Indentation ;Integer }
{ 4 ; ;Object Type ;Option ;CaptionML=ENU=Object Type;
OptionCaptionML=ENU=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber;
OptionString=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber }
OptionCaptionML=ENU=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber,TableExtension,PageExtension;
OptionString=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber,TableExtension,PageExtension }
{ 5 ; ;Object ID ;Integer ;TableRelation=Object.ID WHERE (Type=FIELD(Object Type));
TestTableRelation=No;
CaptionML=ENU=Object ID }
Expand Down
4 changes: 2 additions & 2 deletions EtwPerformanceProfiler/App Objects/TAB50001.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ OBJECT Table 50001 Performance Profiler Archive
{ 1 ; ;Id ;Integer }
{ 3 ; ;Indentation ;Integer }
{ 4 ; ;Object Type ;Option ;CaptionML=ENU=Object Type;
OptionCaptionML=ENU=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber;
OptionString=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber }
OptionCaptionML=ENU=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber,TableExtension,PageExtension;
OptionString=TableData,Table,Form,Report,Dataport,Codeunit,XMLport,MenuSuite,Page,Query,System,FieldNumber,TableExtension,PageExtension }
{ 5 ; ;Object ID ;Integer ;TableRelation=Object.ID WHERE (Type=FIELD(Object Type));
TestTableRelation=No;
CaptionML=ENU=Object ID }
Expand Down
7 changes: 6 additions & 1 deletion EtwPerformanceProfiler/EtwPerformanceProfiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,16 @@ public int CallTreeCurrentStatementOwningObjectType
return 10;
}

if (0 == String.Compare(objectType, "PageExtension", System.StringComparison.OrdinalIgnoreCase))
if (0 == String.Compare(objectType, "TableExtension", System.StringComparison.OrdinalIgnoreCase))
{
return 12;
}

if (0 == String.Compare(objectType, "PageExtension", System.StringComparison.OrdinalIgnoreCase))
{
return 13;
}

throw new InvalidOperationException("Invalid object type.");
}
}
Expand Down