<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=3497&amp;type=atom"/>
	<updated>2007-08-07T15:37:07Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=3497</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=19712#p19712"/>
			<content type="html"><![CDATA[<p><a href="http://dev.textcube.org/changeset/3884">3884</a> 에 반영하였습니다. 감사합니다.^^</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2007-08-07T15:37:07Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=19712#p19712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: [처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=19593#p19593"/>
			<content type="html"><![CDATA[<p>생각해 보니 elapsed 타임이 0이 될 쿼리(캐쉬커리말고)가 있겠냐 만은...혹시나 해서 다시 소스 수정안을 내봅니다.</p><div class="codebox"><pre><code>    foreach( $__tcSqlLog as $c =&gt; $log ) {
        $elapsed[$count] = array( $log[&#039;elapsed&#039;], $count, $log[&#039;cached&#039;] ? &quot;cached&quot;:&quot;&quot; );
        $__tcSqlLog[$c][&#039;percent&#039;] = sprintf(&quot;%4.1f&quot;, $log[&#039;endtime&#039;]*100/$__tcPageEndTime);
        $count++;
    }

    arsort( $elapsed );
    $bgcolor = array();
    foreach( array_splice($elapsed,0,5) as $e ) {
        if($e[2] !=  &quot;cached&quot;)
            $top5[$e[1]] = true;
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[엽기민원]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1538</uri>
			</author>
			<updated>2007-07-31T05:28:37Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=19593#p19593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[처리됨] Needleworks.Function.Debug.php 수정바랍니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=19590#p19590"/>
			<content type="html"><![CDATA[<p>Needleworks.Function.Debug.php를 써서 Debug 할때, 캐쉬되지 않는 쿼리가 5개이하일때 캐쉬되는 쿼리가 top5안에 들어오기도 합니다. 뭐 한페이지에 텍스트큐브에서 캐쉬되지 않은 쿼리가 설마 5개 이하일때가 있을지 모르지만...</p><p>암튼 이유는..</p><div class="codebox"><pre><code>    foreach( array_splice($elapsed,0,5) as $e ) {
        $top5[$e[1]] = true;
    }</code></pre></div><p>소팅한다음에 무조건 5개를 잡는데, 캐쉬는 elapsed 타임이 0이므로 가끔씩 캐쉬 쿼리가 top5에 올라오기도 하는 거죠..<br />그래서 다음과 같이 수정해야 할것 같습니다.</p><div class="codebox"><pre><code>    foreach( array_splice($elapsed,0,5) as $e ) {
        if($e[0] !=  0)
            $top5[$e[1]] = true;
    }</code></pre></div><p>^^</p>]]></content>
			<author>
				<name><![CDATA[엽기민원]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1538</uri>
			</author>
			<updated>2007-07-31T05:19:03Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=19590#p19590</id>
		</entry>
</feed>
