相关疑难解决方法(0)

systrace:HTML输出的跟踪结果格式无效

当我运行 python systrace.py时--time = 10 -o mynewtrace.html gfx
发生以下错误

Starting tracing (10 seconds)
Tracing completed. Collecting output...
<br>
Run Code Online (Sandbox Code Playgroud)

线程Thread-11中的异常:

Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()<br>
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, self.__kwargs)<br>
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 194, in _collect_a
nd_preprocess
    self._trace_data = self._preprocess_trace_data(trace_data)<br>
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 272, in _preproces
s_trace_data
    trace_data = strip_and_decompress_trace(trace_data)<br>
  File "C:\Users\rajnish.r\AppData\Local\Android\Sdk\platform-tools\systrace\cat
apult\systrace\systrace\tracing_agents\atrace_agent.py", line 332, in strip_and_
decompress_trace
    **trace_data = zlib.decompress(trace_data)**
Run Code Online (Sandbox Code Playgroud)

错误:解压缩数据时出错-5:不完整或截断的流

Outputting Systrace results...<br>
Tracing complete, writing results<br> …
Run Code Online (Sandbox Code Playgroud)

performance android systrace

12
推荐指数
1
解决办法
2312
查看次数

水平滚动文本性能问题

我的应用程序包含一些textViews应该水平滚动的应用程序.当我layout第一次加载时,但是在点击a button加载另一个layout然后再重新点击它button以加载第一个layout 那些textViews在"大"延迟(如20秒+)之后开始滚动时,这种方法就有效.我试图用等等找出这个问题的根源Layout Inspector,Hierarchy Viewer但没有运气.

UPDATE: I noticed something strange today.When i go from the 1st layout to the 2nd one and vice versa, although the TextViews stop scrolling, if i close and re-open the phone's screen, the scrolling works like a charm. This seems totally strange to me, do you know what's causing this and why?

CardViewActivity.java:

public class CardViewActivity …
Run Code Online (Sandbox Code Playgroud)

java xml android textview android-layout

6
推荐指数
1
解决办法
241
查看次数

标签 统计

android ×2

android-layout ×1

java ×1

performance ×1

systrace ×1

textview ×1

xml ×1