contentTracing.setWatchEvent/cancelWatchEvent is removed
authorCheng Zhao <zcbenz@gmail.com>
Mon, 23 Jan 2017 08:42:39 +0000 (17:42 +0900)
committerKevin Sawicki <kevinsawicki@gmail.com>
Mon, 6 Feb 2017 18:34:28 +0000 (10:34 -0800)
atom/browser/api/atom_api_content_tracing.cc
docs-translations/jp/api/content-tracing.md
docs-translations/ko-KR/api/content-tracing.md
docs-translations/zh-CN/api/content-tracing.md
docs/api/content-tracing.md

index fa275c1c90d062d0452c8b88e2446eab3044e9a8..375196b28318b371863e08955029c9021d7f0bfc 100644 (file)
@@ -69,10 +69,6 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
   dict.SetMethod("stopRecording", &StopRecording);
   dict.SetMethod("getTraceBufferUsage", base::Bind(
       &TracingController::GetTraceBufferUsage, controller));
-  dict.SetMethod("setWatchEvent", base::Bind(
-      &TracingController::SetWatchEvent, controller));
-  dict.SetMethod("cancelWatchEvent", base::Bind(
-      &TracingController::CancelWatchEvent, controller));
 }
 
 }  // namespace
index d7156baa31ac512cd02bf7d330719c5893b125f5..2a0347e1f6cca0f496940adf7b7ab52a484318e4 100644 (file)
@@ -115,15 +115,3 @@ EnableRecordingリクエストを受信するとすぐに、子プロセス上
 * `callback` Function
 
 プロセスのトレースバッファのプロセス間で最大使用量をフルの状態の何%かで取得します。TraceBufferUsage値が設定されていると、 `callback`がコールされます。
-
-### `contentTracing.setWatchEvent(categoryName, eventName, callback)`
-
-* `categoryName` String
-* `eventName` String
-* `callback` Function
-
-プロセス上でイベント発生すると、その度に`callback`がコールされます。
-
-### `contentTracing.cancelWatchEvent()`
-
-イベントウオッチをキャンセルします。トレースが有効になっていると、監視イベントのコールバックとの競合状態になる可能性があります。
index c360c35e194c39b68b269695c5948179490f973b..68622e10e0a2247f2165a218e23d2187cc4700b3 100644 (file)
@@ -150,16 +150,3 @@ Child 프로세스는 일반적으로 추적 데이터와 희귀한 플러시 
 
 추적 버퍼 % 전체 상태의 프로세스간 최대치를 가져옵니다. TraceBufferUsage 값이
 결정되면 `callback`이 한 번 호출됩니다.
-
-### `contentTracing.setWatchEvent(categoryName, eventName, callback)`
-
-* `categoryName` String
-* `eventName` String
-* `callback` Function
-
-`callback`은 지정된 이벤트가 어떤 작업을 발생시킬 때마다 호출됩니다.
-
-### `contentTracing.cancelWatchEvent()`
-
-Watch 이벤트를 중단합니다. 만약 추적이 활성화되어 있다면 이 메서드는 watch 이벤트
-콜백과 race가 일어날 것입니다.
index f2de76d148195e7ac25b193f96c4f9231e11ac51..f30a616b3f53db67ae541f6360a14ea787e0a693 100644 (file)
@@ -115,15 +115,3 @@ contentTracing.startRecording(options, function () {
 * `callback` Function
 
 通过查找 buffer 进程来获取百分比最大使用量.当确定了TraceBufferUsage 的值确定的时候,就调用 `callback` .
-
-### `contentTracing.setWatchEvent(categoryName, eventName, callback)`
-
-* `categoryName` String
-* `eventName` String
-* `callback` Function
-
-任意时刻在任何进程上指定事件发生时将调用 `callback` .
-
-### `contentTracing.cancelWatchEvent()`
-
-取消 watch 事件. 如果启动查找,这或许会造成 watch 事件的回调函数 出错.
\ No newline at end of file
index 45ea34728965d25431539099881a643fcb62f392..158427ddb5b430988e6b4b1b3fed6e7450e892b9 100644 (file)
@@ -163,17 +163,3 @@ request the `callback` will be called with a file that contains the traced data.
 Get the maximum usage across processes of trace buffer as a percentage of the
 full state. When the TraceBufferUsage value is determined the `callback` is
 called.
-
-### `contentTracing.setWatchEvent(categoryName, eventName, callback)`
-
-* `categoryName` String
-* `eventName` String
-* `callback` Function
-
-`callback` will be called every time the given event occurs on any
-process.
-
-### `contentTracing.cancelWatchEvent()`
-
-Cancel the watch event. This may lead to a race condition with the watch event
-callback if tracing is enabled.