chrome72:view netlog

Chrome NetLog Viewer 是一个独立的Web应用程序,用于查看chrome://net-export导出的NetLog日志文件。用户可以本地或通过公共服务器访问该应用,进行 Chromium 网络日志的后期分析。通过选择文件并加载NetLog日志,信息将以表格形式展示,提供多标签页以查看详细信息。应用部署包括克隆catapult仓库、运行本地服务器和在AppEngine上部署。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A standalone WebApp for viewing chrome://net-export NetLog dump files

Introduction
This is a WebApp that allows someone to perform post-mortem analysis of a saved Chromium NetLog dump. The full design doc can be found here.

Workflow

  1. Generate a NetLog dump file using chrome://net-export, or download one that has been generated by someone else. NetLog dump files are platform and architecture independent.

  2. The netlog viewer can be served locally, or accessed through a public server.

The public server is located at https://netlog-viewer.appspot.com/. (All netlog data is processed locally in your browser, not uploaded to the server.)

To serve the app locally, clone the catapult repository and serve the files from an HTTP localhost server:

git clone https://chromium.googlesource.com/catapult
cd catapult/netlog_viewer/netlog_viewer
ln -s ../../third_party/polymer/components/
python -m SimpleHTTPServer 8080

Visit http://localhost:8080/index.html in your web browser to view the netlog viewer.

  1. Click “Choose File” which will allow you to select the file you exported earlier. From there your NetLog dump will appear as a table filled with all the dump’s information. Visit the other tabs to view additional information!
    Deploying

  2. Run netlog_viewer/bin/run_dev_server_tests and verify that nothing fails.

  3. You must be an admin on the netlog-viewer appengine project.

  4. Authenticate with the gcloud command line tool. (Only needs to be done once.)

gcloud auth login
  1. Build the vulcanized version that will be served by appengine.
netlog_viewer_build/build_for_appengine.py
  1. Run app server locally, load in browser, and test that everything looks good. (Be sure to shift-reload so you aren’t testing an old cached version.)
cd appengine
dev_appserver.py app.yaml
  1. Deploy without making it the default version.
gcloud app deploy --no-promote --project netlog-viewer
  1. Load the versioned URL that was printed and test that it works.

  2. Send live traffic to the new version using the GCP console.

Merge history
The initial code was taken out of Chromium. The code should contain all changes made to net-internals up to chromium commit bde2d7652e5b47fc8a2c5e18e932f8ce171a9510, after which the netlog viewer code was removed from Chromium.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值