Skip to content
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
44 changes: 44 additions & 0 deletions EtwPerformanceProfiler/AL App Objects/PageExt.Session List.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pageextension 50145 SessionListPerformanceProfiler extends "Session List"
{
actions
{
addafter("Debug Next Session")
{
action("Performance Profiler")
{
Caption = 'Performance Profiler';
Image = Capacity;
Promoted = true;
PromotedCategory = Category4;
PromotedIsBig = true;

trigger OnAction()
var
PerfProfiler: Page "Performance Profiler";
begin
if "Session ID" > 0 then
PerfProfiler.SetTargetSessionID("Session ID");

PerfProfiler.RUN;
end;
}
action("Terminate Session")
{
Caption = 'Terminate Session';
Image = Delete;
Promoted = true;
PromotedCategory = Category4;
PromotedIsBig = true;
Ellipsis = true;

trigger OnAction()
var
TerminateConfirmTxt: Label 'Terminate selected session?';
begin
if Confirm(TerminateConfirmTxt, true) then
StopSession("Session ID");
end;
}
}
}
}
Loading