<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Code profiling in SAS Intelligent Decisioning in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Code-profiling-in-SAS-Intelligent-Decisioning/m-p/986879#M3067</link>
    <description>&lt;P&gt;After inspecting the compiled code of our Decision Flow, I found the following lines:&lt;/P&gt;
&lt;PRE&gt;dcl package logger logr_perf('App.tk.SID.Perf');
...
logr_perf.log( 'd', 'Package Name: MyPackage, Node Name: MyNode, Node ID: bf5809d2-7a20-4c70-9321-fb7752c01889, NODE DURATION: ' .. elapsed_time);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that a performance logger is already built in. This led me to SAS's docs on Enabling Performance Logging:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/edmcdc/v_067/edmag/p18ijod43fspmwn1k11cyrb8kjoi.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/edmcdc/v_067/edmag/p18ijod43fspmwn1k11cyrb8kjoi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Setting the following environment variable in our published SCR containers enabled this logger:&lt;/P&gt;
&lt;PRE&gt;SAS_SCR_LOG_LEVEL_App.tk.SID.Perf=TRACE&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also found another env var that can be set for code profiling, as described in SAS's Monitoring and Logging docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/mascrtcdc/v_042/mascrtag/p19wd6anldyq55n1vvezs8j2uhlx.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/mascrtcdc/v_042/mascrtag/p19wd6anldyq55n1vvezs8j2uhlx.htm&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;SAS_SCR_LOG_LEVEL_SCR_PROFILE=TRACE&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Apr 2026 12:16:41 GMT</pubDate>
    <dc:creator>Andrew-M</dc:creator>
    <dc:date>2026-04-28T12:16:41Z</dc:date>
    <item>
      <title>Code profiling in SAS Intelligent Decisioning</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Code-profiling-in-SAS-Intelligent-Decisioning/m-p/986876#M3066</link>
      <description>&lt;P&gt;Is there any way to perform code profiling in SAS Intelligent Decisioning? We have a Decision flow that is very slow to execute. It contains hundreds of Rule Sets and Code Files. We want to determine what parts of the code are most underperforming so we can focus on optimising those parts.&lt;BR /&gt;&lt;BR /&gt;Is there a flag or feature we can enable to collect performance data? Even just logging the execution time of each package or method would be sufficient. Any suggestions are welcome.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 10:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Code-profiling-in-SAS-Intelligent-Decisioning/m-p/986876#M3066</guid>
      <dc:creator>Andrew-M</dc:creator>
      <dc:date>2026-04-28T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code profiling in SAS Intelligent Decisioning</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Code-profiling-in-SAS-Intelligent-Decisioning/m-p/986879#M3067</link>
      <description>&lt;P&gt;After inspecting the compiled code of our Decision Flow, I found the following lines:&lt;/P&gt;
&lt;PRE&gt;dcl package logger logr_perf('App.tk.SID.Perf');
...
logr_perf.log( 'd', 'Package Name: MyPackage, Node Name: MyNode, Node ID: bf5809d2-7a20-4c70-9321-fb7752c01889, NODE DURATION: ' .. elapsed_time);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that a performance logger is already built in. This led me to SAS's docs on Enabling Performance Logging:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/edmcdc/v_067/edmag/p18ijod43fspmwn1k11cyrb8kjoi.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/edmcdc/v_067/edmag/p18ijod43fspmwn1k11cyrb8kjoi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Setting the following environment variable in our published SCR containers enabled this logger:&lt;/P&gt;
&lt;PRE&gt;SAS_SCR_LOG_LEVEL_App.tk.SID.Perf=TRACE&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also found another env var that can be set for code profiling, as described in SAS's Monitoring and Logging docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/mascrtcdc/v_042/mascrtag/p19wd6anldyq55n1vvezs8j2uhlx.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/mascrtcdc/v_042/mascrtag/p19wd6anldyq55n1vvezs8j2uhlx.htm&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;SAS_SCR_LOG_LEVEL_SCR_PROFILE=TRACE&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2026 12:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Code-profiling-in-SAS-Intelligent-Decisioning/m-p/986879#M3067</guid>
      <dc:creator>Andrew-M</dc:creator>
      <dc:date>2026-04-28T12:16:41Z</dc:date>
    </item>
  </channel>
</rss>

