@@ -163,20 +163,20 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
163163 // Update timing information for statistics
164164 value->setElapsedTime (endTime - startTime);
165165
166- LOGD (" CACHE MISS: Added entry for text='%s' with start=%d, count=%d, "
166+ LOGD (" CACHE MISS: Added entry with start=%d, count=%d, "
167167 " contextCount=%d, entry size %d bytes, remaining space %d bytes"
168- " - Compute time in nanos: %d" ,
169- String8 (text, contextCount). string (), start, count, contextCount ,
170- size, mMaxSize - mSize , value-> getElapsedTime ());
168+ " - Compute time in nanos: %d - Text='%s' " ,
169+ start, count, contextCount, size, mMaxSize - mSize , value-> getElapsedTime () ,
170+ String8 (text, contextCount). string ());
171171 }
172172 } else {
173173 if (mDebugEnabled ) {
174174 LOGD (" CACHE MISS: Calculated but not storing entry because it is too big "
175- " for text='%s' with start=%d, count=%d, contextCount=%d, "
175+ " with start=%d, count=%d, contextCount=%d, "
176176 " entry size %d bytes, remaining space %d bytes"
177- " - Compute time in nanos: %lld" ,
178- String8 (text, contextCount). string (), start, count, contextCount ,
179- size, mMaxSize - mSize , endTime );
177+ " - Compute time in nanos: %lld - Text='%s' " ,
178+ start, count, contextCount, size, mMaxSize - mSize , endTime ,
179+ String8 (text, contextCount). string () );
180180 }
181181 value.clear ();
182182 }
@@ -190,12 +190,12 @@ sp<TextLayoutCacheValue> TextLayoutCache::getValue(SkPaint* paint,
190190 if (value->getElapsedTime () > 0 ) {
191191 float deltaPercent = 100 * ((value->getElapsedTime () - elapsedTimeThruCacheGet)
192192 / ((float )value->getElapsedTime ()));
193- LOGD (" CACHE HIT #%d for text='%s' with start=%d, count=%d, contextCount=%d "
193+ LOGD (" CACHE HIT #%d with start=%d, count=%d, contextCount=%d "
194194 " - Compute time in nanos: %d - "
195- " Cache get time in nanos: %lld - Gain in percent: %2.2f" ,
196- mCacheHitCount , String8 (text, contextCount). string (), start, count,
197- contextCount ,
198- value-> getElapsedTime (), elapsedTimeThruCacheGet, deltaPercent );
195+ " Cache get time in nanos: %lld - Gain in percent: %2.2f - Text='%s' " ,
196+ mCacheHitCount , start, count, contextCount ,
197+ value-> getElapsedTime (), elapsedTimeThruCacheGet, deltaPercent ,
198+ String8 (text, contextCount). string () );
199199 }
200200 if (mCacheHitCount % DEFAULT_DUMP_STATS_CACHE_HIT_INTERVAL == 0 ) {
201201 dumpCacheStats ();
0 commit comments