<?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 Python script to launch ArcMap and log startup time in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383008#M30163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;We are still on arcmap 10.3.1. and now we migrate from Windows 7 to Windows 10. Users who already migrated experience severe performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm trying to achieve is to log ArcMap startup time as an indicator of user-performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to start ArcMap from python and that works even launching a blank MXD.&lt;/P&gt;&lt;P&gt;What doesn't work is the measure for t2. The script walks on while ArcMap is loading.&lt;/P&gt;&lt;P&gt;Does anyone see how this could be achieved? I thought maybe the is a way to lauch arcmap and running a script which would write a timestamp to a file...&lt;/P&gt;&lt;P&gt;Or should I forget this Idea and just use a stopwatch?&lt;BR /&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time

blank &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'P:\civ\Geo-Projecten_PT\HotFIX_KG\10.3.1_bwTools\_Proj\performance2020\Blank.mxd'&lt;/SPAN&gt;
tfm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'%H:%M:%S'&lt;/SPAN&gt;
t1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;time&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
st1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strftime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tfm&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'start-time      : '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; st1
os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;startfile&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;blank&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
t2  &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;time&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
st2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strftime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tfm&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'time loaded     : '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; st2
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ArcMap load-time: '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t2&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;t1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'----------------------'&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'-----Script end!------'&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:38:08 GMT</pubDate>
    <dc:creator>Bartvan_der_Wolf</dc:creator>
    <dc:date>2021-12-11T17:38:08Z</dc:date>
    <item>
      <title>Python script to launch ArcMap and log startup time</title>
      <link>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383008#M30163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;We are still on arcmap 10.3.1. and now we migrate from Windows 7 to Windows 10. Users who already migrated experience severe performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm trying to achieve is to log ArcMap startup time as an indicator of user-performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to start ArcMap from python and that works even launching a blank MXD.&lt;/P&gt;&lt;P&gt;What doesn't work is the measure for t2. The script walks on while ArcMap is loading.&lt;/P&gt;&lt;P&gt;Does anyone see how this could be achieved? I thought maybe the is a way to lauch arcmap and running a script which would write a timestamp to a file...&lt;/P&gt;&lt;P&gt;Or should I forget this Idea and just use a stopwatch?&lt;BR /&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time

blank &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'P:\civ\Geo-Projecten_PT\HotFIX_KG\10.3.1_bwTools\_Proj\performance2020\Blank.mxd'&lt;/SPAN&gt;
tfm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'%H:%M:%S'&lt;/SPAN&gt;
t1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;time&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
st1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strftime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tfm&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'start-time      : '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; st1
os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;startfile&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;blank&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
t2  &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;time&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
st2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;strftime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tfm&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'time loaded     : '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; st2
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ArcMap load-time: '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;t2&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;t1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'----------------------'&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'-----Script end!------'&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383008#M30163</guid>
      <dc:creator>Bartvan_der_Wolf</dc:creator>
      <dc:date>2021-12-11T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to launch ArcMap and log startup time</title>
      <link>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383009#M30164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a stopwatch might be just as effective as neither will tell you why your startup is slow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We upgraded to Windows 10 early last year and startup times increased for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp; Did you upgrade to Windows 10 or get new computers with Windows 10 and installed ArcMap?&lt;/P&gt;&lt;P&gt;When we upgraded we received new computers with the generic company image loaded on the drive.&amp;nbsp; We also upgraded to SSD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We then had to install ArcMap on the new Windows machine.&amp;nbsp; If you upgraded your computers to Windows 10 you might be well served by removing and re-installing ArcMap.&amp;nbsp; You may very well be experiencing issues with License Manager or an install configured for W7 not being compatible with W10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 15:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383009#M30164</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2020-02-04T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to launch ArcMap and log startup time</title>
      <link>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383010#M30165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Application profiling is an involved topic, one that is difficult to casually dive into whether using Esri or other companies' products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unclear whether your issue/question is about starting ArcMap or opening MXDs.&amp;nbsp; If someone is clicking on an MXD to open it, there are two (or more) very distinct actions happening.&amp;nbsp; Is ArcMap really opening slowly or is it loading MXDs into ArcMap that are slow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-to-launch-arcmap-and-log-startup/m-p/383010#M30165</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-04T17:10:34Z</dc:date>
    </item>
  </channel>
</rss>

