aboutsummaryrefslogtreecommitdiff
path: root/src/profiler
diff options
context:
space:
mode:
authorcjd242018-04-26 07:02:02 +0100
committercjd242018-04-26 07:02:02 +0100
commit025b4833009255baba8a24be4dde78c0f0832fb2 (patch)
tree22fa76dfbd6cf33669a280373dacc74c35c0e7d3 /src/profiler
parentfixing czi live tiles and adding support for scn live tiles (diff)
parentMerge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff)
downloadmedicine-025b4833009255baba8a24be4dde78c0f0832fb2.tar.gz
medicine-025b4833009255baba8a24be4dde78c0f0832fb2.zip

Merge branch ‘trh/gets’ of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-4/project-code into trh/gets

Diffstat (limited to 'src/profiler')
-rw-r--r--src/profiler/index.d.ts7
-rw-r--r--src/profiler/index.js2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/profiler/index.d.ts b/src/profiler/index.d.ts
index 0aae355..d4e45ad 100644
--- a/src/profiler/index.d.ts
+++ b/src/profiler/index.d.ts
@@ -44,3 +44,10 @@ export const profiler: {
update: (value: number) => void;
};
};
+
+export type RemoteResolver = (ret: { success: boolean }) => void;
+
+export const remote: (
+ name: string,
+ logic: (res: RemoteResolver) => void
+) => void;
diff --git a/src/profiler/index.js b/src/profiler/index.js
index 24c187e..b21574a 100644
--- a/src/profiler/index.js
+++ b/src/profiler/index.js
@@ -3,4 +3,4 @@ let pmx = require('pmx').init({
ports: true
});
-module.exports = { profiler: pmx.probe() };
+module.exports = { profiler: pmx.probe(), remote: pmx.action };