diff --git a/EtwPerformanceProfiler/App Objects/TAB50000.txt b/EtwPerformanceProfiler/App Objects/TAB50000.txt index e0582fe..de806dd 100644 --- a/EtwPerformanceProfiler/App Objects/TAB50000.txt +++ b/EtwPerformanceProfiler/App Objects/TAB50000.txt @@ -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 } diff --git a/EtwPerformanceProfiler/App Objects/TAB50001.txt b/EtwPerformanceProfiler/App Objects/TAB50001.txt index 0c50c0d..1dfb28b 100644 --- a/EtwPerformanceProfiler/App Objects/TAB50001.txt +++ b/EtwPerformanceProfiler/App Objects/TAB50001.txt @@ -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 } diff --git a/EtwPerformanceProfiler/EtwPerformanceProfiler.cs b/EtwPerformanceProfiler/EtwPerformanceProfiler.cs index 3db8e88..6d1e91b 100644 --- a/EtwPerformanceProfiler/EtwPerformanceProfiler.cs +++ b/EtwPerformanceProfiler/EtwPerformanceProfiler.cs @@ -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."); } }