All Projects → weexteam → Analyzer Of Android For Apache Weex

weexteam / Analyzer Of Android For Apache Weex

Licence: apache-2.0

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Analyzer Of Android For Apache Weex

Sketch React
render sketch(v43+) file as react component
Stars: ✭ 98 (-11.71%)
Mutual labels:  developer-tools
Awesome Awesome Nodejs
🐢🚀 An Awesome list of Awesome lists related to Node.js.
Stars: ✭ 1,389 (+1151.35%)
Mutual labels:  developer-tools
Docker Osx Dev
A productive development environment with Docker on OS X
Stars: ✭ 1,436 (+1193.69%)
Mutual labels:  developer-tools
Shtab
↔️ Automagic shell tab completion for Python CLI applications
Stars: ✭ 99 (-10.81%)
Mutual labels:  developer-tools
Uce Handler
Convenient Uncaught-Exception Handler Library For Testers and Developers. Copy, Share, Email, Save crash logs easily.
Stars: ✭ 101 (-9.01%)
Mutual labels:  developer-tools
Fabric8 Platform
Generates the distribution of the fabric8 microservices platform
Stars: ✭ 105 (-5.41%)
Mutual labels:  developer-tools
Reviewboard
An extensible and friendly code review tool for projects and companies of all sizes.
Stars: ✭ 1,334 (+1101.8%)
Mutual labels:  developer-tools
Easywebpack Cli
A Powerful Cross-platform Webpack CLI Tool
Stars: ✭ 110 (-0.9%)
Mutual labels:  weex
Rempl
Рlatform for moderated remote access to JavaScript runtime via custom UI
Stars: ✭ 102 (-8.11%)
Mutual labels:  developer-tools
Flowmaker
flowmaker: JS to SVG flowchart generation extension for Vscode in realtime written in typescript and also download the SVG through local node server. Extension:
Stars: ✭ 108 (-2.7%)
Mutual labels:  developer-tools
Beemo
🤖 Centralized configuration layer for dev tools. Beep boop.
Stars: ✭ 100 (-9.91%)
Mutual labels:  developer-tools
Climate
The swiss-army knife of utility tools for Linux.
Stars: ✭ 1,372 (+1136.04%)
Mutual labels:  developer-tools
Assetcatalogtinkerer
An app that lets you open .car files and browse/extract their images.
Stars: ✭ 1,628 (+1366.67%)
Mutual labels:  developer-tools
Emage
🧙‍♂️ From developers to developers: a cross-platform tool for losslessly image compression.
Stars: ✭ 99 (-10.81%)
Mutual labels:  developer-tools
Appstoreconnect Cli
An easy to use command-line tool for interacting with the Apple AppStore Connect API
Stars: ✭ 110 (-0.9%)
Mutual labels:  developer-tools
Mln
高性能、小巧、易上手的移动跨平台开发框架. A framework for building Mobile cross-platform apps with Lua
Stars: ✭ 1,343 (+1109.91%)
Mutual labels:  weex
Useful Open Source Android
造福大家,0广告,收集归纳
Stars: ✭ 1,391 (+1153.15%)
Mutual labels:  developer-tools
Starters
R Package 📦 for initializing projects for various R activities 🔩
Stars: ✭ 111 (+0%)
Mutual labels:  developer-tools
Weex Analysis Project
Weex源码分析系列文章
Stars: ✭ 110 (-0.9%)
Mutual labels:  weex
Xrmdefinitelytyped
Tool to generate TypeScript declaration files for Dynamics 365/CDS client-side coding.
Stars: ✭ 107 (-3.6%)
Mutual labels:  developer-tools

Weex Analyzer


Download GitHub release GitHub release

Weex Analyzer是一款运行在手机客户端上辅助开发者进行weex开发的小工具。 接入此工具后,开发者可以在debug包中通过摇一摇打开功能选项。目前实现的功能有:

  1. log日志查看,支持日志分级、搜索
  2. weex性能分析(查看当前weex页面性能指标/以图表方式展示历史性能指标变化趋势)
  3. weex storage查看、删除
  4. 实时帧率、丢帧数、内存占用悬浮框
  5. 流量监控
  6. cpu/内存/fps 实时折线图
  7. 页面3d视图
  8. js报错实时通知
  9. 远程调试js。(依赖weex dev tool)
  10. 渲染性能分析(如自动分析页面嵌套层级,深层嵌套高亮透出);
  11. 视图审查(点击查看任意元素样式)

接入

添加依赖

debugCompile 'com.taobao.android:weex_analyzer:${latest version}'

代码集成

具体请参考commonsmodule下WXAnalyzerDelegateAbstractWeexActivity.

使用手册

1. 功能开启
  • 前置条件: a. 已集成weex_analyzer,并初始化. b. 设备已开启传感器相关权限(模拟器不用)
  • 真机: 进入weex页面,"摇一摇".
  • 模拟器: 进入weex页面,使用快捷键"cmd+M"(即menu键). 如果使用genomotion模拟器,需要查看首页是否能看到menu标识,如果没有,需要手动打开。仍然不行的话可以尝试adb命令adb shell input keyevent KEYCODE_MENU

功能开启

2. weex性能指标

每一个weex页面都有若干性能相关的指标,比如首屏渲染时间、js下载时间、sdk初始化时间等,这些指标对用户体验有着直接的影响,因而我们很有必要去关注它们。weex-analyzer提供了图形化的方式观测这些指标。 打开【weex性能指标】选项,【current performance】用于观察这一次页面打开过程中的性能指标,【history performance】记录最近若干次(max=6)打开此页面的指标变化趋势。

weex性能指标1

weex性能指标2

3. 内存

每一个weex页面最终都会被渲染成native view,与传统android应用一样,weex页面也会出现内存泄露、内存抖动、oom等问题。因而我们也需要关注内存变化趋势。打开【内存】选项,即可看到当前app实时内存变化趋势(与android studio memory monitor类似)。默认每秒采样一次。

性能指标

4. cpu

与【内存】选项类似,【cpu】选项中可以实时显示cpu使用率。这里的cpu取值为当前app CPU 在user mode与kernel mode下的使用率之和。

5. fps

与【内存】选项类似,【fps】选项中可以实时显示fps值。

6. weex storage

可以实时查看weex storage存储状态。单击可以查看value详情,长按可以删除k-v。

storage

7. 3d视图

以3d形式展示当前weex视图状态,可拖拽、缩放。

3d视图

8. 日志

类似android logcat. 实时展示开发日志。支持日志分级、搜索。另外提供了默认的过滤关键字,比如js logcallNative等。

日志以悬浮窗形式展示,可拖拽,可调整大小。

日志

9. js远程调试

首先需要集成weex dev tool

操作步骤:

  1. 命令行下输入weex debug,打开调试服务器(会在浏览器上打开一个页面)。
  2. 打开【js远程调试】选项(首次打开需要输入server端ip),即可自动连接到调试服务器。
  3. 若服务端ip发生变化,可进入【配置】页面输入新的ip地址。

此功能方便没有集成【扫一扫】功能的app,或者是无法使用【扫一扫】的场景(如模拟器)。

10. 渲染性能分析

点击【渲染性能分析】按钮,即可开启。

注:

  1. 支持同时展示native层级与vdom层级,对于vdom层级超过14层的,会自动高亮透出;
  2. 支持检查页面是否存在list/scroller,预估屏数等;

渲染性能分析

11. 视图审查

点击任意元素,查看其视觉样式。

视图审查

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].