classdef ProfileReportSection < coder.profile.ProfileReportItem
% PROFILEREPORTSECTION is an entry in the profiling report containing plain
% html code

% Copyright 2021 The MathWorks, Inc.

properties
HtmlCode;
ShrinkButton;
SecNumber;
WidthDec;
end

methods
function obj = ProfileReportSection(name, html, shrinkBtn, num, widthDec)
obj = obj@coder.profile.ProfileReportItem(name);
obj.HtmlCode = html;
obj.ShrinkButton = shrinkBtn;
obj.SecNumber = num;
obj.WidthDec = widthDec;
end

function build(this, report, ~)
report.addCustomizedSection(this.SectionName, this.HtmlCode,...
this.ShrinkButton, ...
this.SecNumber, ...
this.WidthDec);
end
end

end