当前位置: 首页 > news >正文

晋城市 制作网站seo基础优化包括哪些内容

晋城市 制作网站,seo基础优化包括哪些内容,企业高端网站制作,负责公司网站建设的岗位叫什么序言 最近在研究性能问题需要抓取trace文件。于是写了个脚本 使用 双击运行批处理文件,可以开始记录trace。而且以当前文件夹下面的。config.pbtx 作为配置文件。 (pbtx就是一个json文件。配置了需要抓取那些参数,可以通过https://ui.per…

序言

最近在研究性能问题需要抓取trace文件。于是写了个脚本

使用

双击运行批处理文件,可以开始记录trace。而且以当前文件夹下面的。config.pbtx 作为配置文件。
在这里插入图片描述
(pbtx就是一个json文件。配置了需要抓取那些参数,可以通过https://ui.perfetto.dev/中的Record new trace (左侧)的菜单,在右侧设置最近要记录什么内容。来生成配置文件。可以参考
Android Perfetto 系列 2:Perfetto Trace 抓取
在这里插入图片描述
最后的文件在Cmdline instructions菜单中显示。
在这里插入图片描述
右边下方的内容拷贝到。当前目录,并命名为config.pbtx
记得把配置中的时间去除,这样可以一直记录。
在这里插入图片描述
在当前文件夹下新建批处理

@echo off
chcp 65001 >nul@echo off
setlocal enabledelayedexpansion:: 获取当前目录
echo 当前目录: %cd%:: 使用 PowerShell 获取时间戳
for /f "delims=" %%a in ('powershell.exe -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set timestamp=%%a
echo 时间戳: %timestamp%:: 删除旧 trace 文件
adb shell rm -rf /data/misc/perfetto-traces/trace.perfetto
timeout /t 1 >nul:: 推送配置文件
adb push config.pbtx /data/misc/perfetto-configs/config.pbtx
timeout /t 1 >nul:: 开始录制
echo 开始记录 trace,请按 Ctrl+C 结束录制...
adb shell -tt perfetto --txt -c /data/misc/perfetto-configs/config.pbtx -o /data/misc/perfetto-traces/trace.perfetto:: 导出 trace 到当前目录
adb pull /data/misc/perfetto-traces/trace.perfetto .\trace_%timestamp%.perfettoif exist trace_%timestamp%.perfetto (echo ✅ 文件已成功导出到当前目录:echo     trace_%timestamp%.perfettoecho.echo 🔗 正在打开 Perfetto 官方网站,请稍后手动上传 trace 文件。echo     1. 浏览器将自动打开 Perfetto UI。echo     2. 点击左上角 ^> Open trace file^> 按钮。echo     3. 选择刚刚保存的 trace_%timestamp%.perfetto 文件。echo.:: 打开默认浏览器访问 Perfetto UIstart "" https://ui.perfetto.dev/) else (echo ❌ 文件未找到,请检查设备路径或配置。
)pause

双击bat运行,要结束录制的话,只需要按下 Ctrl+C 就可以了。
在这里插入图片描述
最后文件会自动保存到当前文件夹下,以时间命名。
在这里插入图片描述
最后还会自动打开分析网站。只需要把日志文件拖入浏览器就可以打开。
在这里插入图片描述

附带配置

这是我的配置文件,可以记录logcat

buffers {size_kb: 65536fill_policy: DISCARD
}
buffers {size_kb: 4096fill_policy: DISCARD
}
data_sources {config {name: "linux.ftrace"ftrace_config {ftrace_events: "sched/sched_process_exit"ftrace_events: "sched/sched_process_free"ftrace_events: "task/task_newtask"ftrace_events: "task/task_rename"ftrace_events: "binder/*"ftrace_events: "block/*"ftrace_events: "clk/*"ftrace_events: "devfreq/*"ftrace_events: "ext4/*"ftrace_events: "f2fs/*"ftrace_events: "i2c/*"ftrace_events: "irq/*"ftrace_events: "kmem/*"ftrace_events: "memory_bus/*"ftrace_events: "mmc/*"ftrace_events: "oom/*"ftrace_events: "power/*"ftrace_events: "regulator/*"ftrace_events: "sched/*"ftrace_events: "sync/*"ftrace_events: "task/*"ftrace_events: "vmscan/*"ftrace_events: "fastrpc/*"ftrace_events: "sched/sched_switch"ftrace_events: "power/suspend_resume"ftrace_events: "sched/sched_blocked_reason"ftrace_events: "sched/sched_wakeup"ftrace_events: "sched/sched_wakeup_new"ftrace_events: "sched/sched_waking"ftrace_events: "sched/sched_process_exit"ftrace_events: "sched/sched_process_free"ftrace_events: "task/task_newtask"ftrace_events: "task/task_rename"ftrace_events: "power/cpu_frequency"ftrace_events: "power/cpu_idle"ftrace_events: "power/suspend_resume"ftrace_events: "raw_syscalls/sys_enter"ftrace_events: "raw_syscalls/sys_exit"ftrace_events: "power/gpu_frequency"ftrace_events: "gpu_mem/gpu_mem_total"ftrace_events: "power/gpu_work_period"ftrace_events: "ftrace/print"atrace_categories: "adb"atrace_categories: "aidl"atrace_categories: "am"atrace_categories: "audio"atrace_categories: "binder_driver"atrace_categories: "binder_lock"atrace_categories: "bionic"atrace_categories: "camera"atrace_categories: "dalvik"atrace_categories: "database"atrace_categories: "gfx"atrace_categories: "hal"atrace_categories: "input"atrace_categories: "network"atrace_categories: "nnapi"atrace_categories: "pm"atrace_categories: "power"atrace_categories: "res"atrace_categories: "rro"atrace_categories: "rs"atrace_categories: "sm"atrace_categories: "ss"atrace_categories: "vibrator"atrace_categories: "video"atrace_categories: "view"atrace_categories: "webview"atrace_categories: "wm"symbolize_ksyms: truedisable_generic_events: true}}
}
data_sources {config {name: "linux.process_stats"process_stats_config {scan_all_processes_on_start: true}}
}
data_sources {config {name: "linux.sys_stats"sys_stats_config {meminfo_period_ms: 5000stat_period_ms: 250stat_counters: STAT_CPU_TIMESstat_counters: STAT_FORK_COUNTcpufreq_period_ms: 250}}
}
data_sources {config {name: "android.gpu.memory"}
}
data_sources {config {name: "android.java_hprof"java_hprof_config {}}
}
data_sources {config {name: "android.log"android_log_config {log_ids: LID_CRASHlog_ids: LID_DEFAULTlog_ids: LID_EVENTSlog_ids: LID_KERNELlog_ids: LID_RADIOlog_ids: LID_SECURITYlog_ids: LID_STATSlog_ids: LID_SYSTEM}}
}
data_sources {config {name: "android.surfaceflinger.frametimeline"}
}
data_sources {config {name: "android.game_interventions"}
}
data_sources {config {name: "android.network_packets"network_packet_trace_config {poll_ms: 1000}}
}
data_sources {config {name: "android.packages_list"}
}
data_sources {config {name: "android.statsd"statsd_tracing_config {push_atom_id: ATOM_PROCESS_STATE_CHANGEDpush_atom_id: ATOM_BLE_SCAN_RESULT_RECEIVEDpush_atom_id: ATOM_SENSOR_STATE_CHANGEDpush_atom_id: ATOM_GPS_SCAN_STATE_CHANGED}}
}
data_sources {config {name: "linux.perf"perf_event_config {timebase {frequency: 100timestamp_clock: PERF_CLOCK_MONOTONIC}callstack_sampling {}}}
}
http://www.khdw.cn/news/44417.html

相关文章:

  • 网站正在建设中html5南宁优化网站收费
  • 上海网站设计联系方式微指数
  • 福建福州罗源建设局网站b站视频推广网站2023年
  • 做啥网站赚钱四川seo整站优化吧
  • 做微信的网站有哪些功能吗网络推广的几种方式
  • 宜宾网站建设公司应用下载app排行榜
  • 徐州城乡建设网站整合营销策划方案模板
  • 百度快照手机版seo优化轻松seo优化排名
  • 2015做啥网站能致富cms建站
  • c 中怎么用html5做网站东莞优化seo
  • 深圳做网站知名排行全球新冠疫情最新消息
  • 怎样分析网站做seo网络营销的概念及特点
  • 宜兴做网站哪家好seo搜索引擎优化工作内容
  • 南宁做网站在哪了免费推广的app有哪些
  • wordpress添加页面模块seo软件视频教程
  • 抖音代运营服务协议seo诊断书
  • 28预测网站开发上海谷歌推广
  • 建设银行六安市分行网站品牌营销推广策划方案
  • c 微信网站开发seo优化网站词
  • 郑州网站建设报价表百度直播
  • 中国卫生健康网入口昆明seo优化
  • 菠菜网站的代理怎么做新闻最新消息今天
  • 网站建设方案页面设计分析seo深度优化公司
  • wordpress主题企业seo如何优化
  • 长春火车站附近有什么好玩的地方企业网络营销方案
  • 长沙竞价网站建设价格百度手机助手app
  • 客户网站建设需要什么资料我要恢复百度
  • 桂林网站建设 腾云广州seo排名优化
  • 常州教育建设装备中心网站网上网络推广
  • 佛山做网站推广外贸网站如何推广优化