a large semi-rewrite of fs logic
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { SUPPORTED_SERVICES_TYPE } from "./baseTypes";
|
||||
import { InternalDBs, insertProfilerResultByVault } from "./localdb";
|
||||
import { unixTimeToStr } from "./misc";
|
||||
|
||||
interface BreakPoint {
|
||||
@@ -79,4 +81,17 @@ export class Profiler {
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
async save(
|
||||
db: InternalDBs,
|
||||
vaultRandomID: string,
|
||||
remoteType: SUPPORTED_SERVICES_TYPE
|
||||
) {
|
||||
await insertProfilerResultByVault(
|
||||
db,
|
||||
this.toString(),
|
||||
vaultRandomID,
|
||||
remoteType
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user