<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Funny, I commented out some things (red) in #open:forWrite:. Now the profiler is telling me that „String new: 1“ tools 97.4%… Really? Or is this a profiler bug?<div class=""><br class=""></div><div class=""><div class="">open: fileName forWrite: writeMode </div><div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>"Open the file with the given name. If writeMode is true, allow writing, otherwise open the file in read-only mode."</div><div class=""><span class="Apple-tab-span" style="white-space:pre">    </span>"Changed to do a GC and retry before failing ar 3/21/98 17:25"</div><div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>| f |</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>f := fileName asVmPathName.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>fileID := <font color="#ff0000" class="">"StandardFileStream retryWithGC:[</font>" self primOpen: f writable: writeMode <font color="#ff0000" class="">"] </font></div><div class=""><font color="#ff0000" class=""><span class="Apple-tab-span" style="white-space:pre">                                    </span>until:[:id| id notNil] </font></div><div class=""><font color="#ff0000" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>forFileNamed: fileName</font>".</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>fileID ifNil: [^ nil].  "allows sender to detect failure"</div><div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>name := fileName.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><font color="#ff0000" class="">"self register."</font></div><div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>rwmode := writeMode.</div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span>buffer1 := String new: 1.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>self enableReadBuffering</div><div><br class=""><blockquote type="cite" class=""><div class="">Am 17.02.2022 um 17:25 schrieb Jörg Belger <<a href="mailto:unique75@web.de" class="">unique75@web.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">MultiByteFileStream >> open:forWrite: needs  96.8%<div class=""><br class=""></div><div class="">Can I increase the tallying depth? Because it stops at this method and I do not see the calls inside this method.<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 17.02.2022 um 17:18 schrieb David T. Lewis <<a href="mailto:lewis@mail.msen.com" class="">lewis@mail.msen.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">TimeProfileBrowser onBlock: [10000 timesRepeat: [(FileStream fileNamed: 'test,txt') close]].</span></div></blockquote></div><br class=""></div></div><br class=""></div></blockquote></div><br class=""></div></body></html>