@@ -15,8 +15,9 @@ class V8Js
15
15
* @param array $variables
16
16
* @param array $extensions
17
17
* @param bool $report_uncaught_exceptions
18
+ * @param string $snapshot_blob
18
19
*/
19
- public function __construct ($ object_name = 'PHP ' , array $ variables = null , array $ extensions = null , $ report_uncaught_exceptions = true )
20
+ public function __construct ($ object_name = 'PHP ' , array $ variables = null , array $ extensions = null , $ report_uncaught_exceptions = true , $ snapshot_blob = null )
20
21
{}
21
22
22
23
/**
@@ -134,4 +135,17 @@ public static function registerExtension($extension_name, $code, array $dependen
134
135
*/
135
136
public static function getExtensions ()
136
137
{}
138
+
139
+ /**
140
+ * Creates a custom V8 heap snapshot with the provided JavaScript source embedded.
141
+ * Snapshots are supported by V8 4.3.7 and higher. For older versions of V8 this
142
+ * extension doesn't provide this method.
143
+ *
144
+ * @since 1.2.0
145
+ * @param string $embed_source
146
+ *
147
+ * @return string|false
148
+ */
149
+ public static function createSnapshot ($ embed_source )
150
+ {}
137
151
}
0 commit comments