Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
6b1f4d30
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6b1f4d30
编写于
7月 20, 2015
作者:
B
Benjamin Lerman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update to mojo 5561fc7ae1717f8013a873f744fdae116d046e74
上级
c2b57f58
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
69 addition
and
28 deletion
+69
-28
mojo/devtools/common/README.md
mojo/devtools/common/README.md
+50
-18
mojo/public/interfaces/network/url_request.mojom
mojo/public/interfaces/network/url_request.mojom
+18
-9
mojo/public/tools/NETWORK_SERVICE_VERSION
mojo/public/tools/NETWORK_SERVICE_VERSION
+1
-1
未找到文件。
mojo/devtools/common/README.md
浏览文件 @
6b1f4d30
...
@@ -2,36 +2,68 @@
...
@@ -2,36 +2,68 @@
Unopinionated tools for
**running**
,
**debugging**
and
**testing**
Mojo apps.
Unopinionated tools for
**running**
,
**debugging**
and
**testing**
Mojo apps.
## Repo contents
## Install
```
git clone https://github.com/domokit/devtools.git
```
Devtools offer the following tools:
## Contents
-
**mojo_shell**
- universall shell runner
Devtools offers the following tools:
-
**debugger**
- supports interactive tracing and debugging of a running mojo shell
-
**remote_adb_setup**
- configures adb on a remote machine to communicate with
-
`mojo_shell`
- universal shell runner
-
`debugger`
- supports interactive tracing and debugging of a running mojo
shell
-
`remote_adb_setup`
- configures adb on a remote machine to communicate with
a device attached to the local machine
a device attached to the local machine
and a Python scripting library designed for being embedded (
devtoolslib
).
and a Python scripting library designed for being embedded (
`devtoolslib`
).
###
Devtoolslib
###
debugger
**devtoolslib**
is a Python module containing the core scripting functionality
The
`debugger`
script allows you to interactively inspect a running shell,
for running Mojo apps: shell abstraction with implementations for Android and
collect performance traces and attach a gdb debugger.
Linux and support for apptest frameworks. The executable scripts in devtools
are based on this module.
As devtools carry no assumptions about build system or file layout being used,
#### Tracing
one can choose to embed the functionality provided by
**devtoolslib**
in their
To collect
[
performance
own wrapper, instead of relying on the provided scripts. For examples, one can
traces
](
https://www.chromium.org/developers/how-tos/trace-event-profiling-tool
)
refer to mojo's
[
apptest
and retrieve the result:
runner
](
https://github.com/domokit/mojo/blob/master/mojo/tools/apptest_runner.py
)
.
## Install
```
sh
debugger tracing start
debugger tracing stop
[
result.json]
```
The trace file can be then loaded using the trace viewer in Chrome available at
`about://tracing`
.
#### GDB
It is possible to inspect a Mojo Shell process using GDB. The
`debugger`
script
can be used to launch GDB and attach it to a running shell process (android
only):
```
sh
debugger gdb attach
```
```
git clone https://github.com/domokit/devtools.git
#### Android crash stacks
When Mojo shell crashes on Android ("Unfortunately, Mojo shell has stopped.")
due to a crash in native code,
`debugger`
can be used to find and symbolize the
stack trace present in the device log:
```
sh
debugger device stack
```
```
### devtoolslib
**devtoolslib**
is a Python module containing the core scripting functionality
for running Mojo apps: shell abstraction with implementations for Android and
Linux and support for apptest frameworks. The executable scripts in devtools are
based on this module. One can also choose to embed the functionality provided by
**devtoolslib**
in their own wrapper.
## Development
## Development
The library is canonically developed
[
in the mojo
The library is canonically developed
[
in the mojo
...
...
mojo/public/interfaces/network/url_request.mojom
浏览文件 @
6b1f4d30
...
@@ -7,6 +7,22 @@ module mojo;
...
@@ -7,6 +7,22 @@ module mojo;
import "mojo/public/interfaces/network/http_header.mojom";
import "mojo/public/interfaces/network/http_header.mojom";
struct URLRequest {
struct URLRequest {
// Specify the cache behavior of the request.
enum CacheMode {
// Default behavior.
DEFAULT,
// The HTTP request will bypass the local cache and will have a
// 'Cache-Control: nocache' header added in that causes any proxy servers
// to also not satisfy the request from their cache. This has the effect
// of forcing a full end-to-end fetch.
BYPASS_CACHE,
// The HTTP request will fail if it cannot serve the requested resource
// from the cache (or some equivalent local store).
ONLY_FROM_CACHE,
};
// The URL to load.
// The URL to load.
string url;
string url;
...
@@ -29,13 +45,6 @@ struct URLRequest {
...
@@ -29,13 +45,6 @@ struct URLRequest {
// when a redirect is encounterd, FollowRedirect must be called to proceed.
// when a redirect is encounterd, FollowRedirect must be called to proceed.
bool auto_follow_redirects = false;
bool auto_follow_redirects = false;
// If set to true, then the HTTP request will bypass the local cache and will
// The cache behavior for the request.
// have a 'Cache-Control: nocache' header added in that causes any proxy
CacheMode cache_mode = DEFAULT;
// servers to also not satisfy the request from their cache. This has the
// effect of forcing a full end-to-end fetch.
bool bypass_cache = false;
// If set to true, then the HTTP request will fail if it cannot serve the
// requested resource from the cache (or some equivalent local store).
bool only_from_cache = false;
};
};
mojo/public/tools/NETWORK_SERVICE_VERSION
浏览文件 @
6b1f4d30
7adc0c0aea71c83932625072af90d87cfe0fd132
custom_build_base_7adc0c0aea71c83932625072af90d87cfe0fd132_issue_1241553003_patchset_1
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录