mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-07 07:50:26 +00:00
Simple performance logging
This commit is contained in:
parent
bab14b7053
commit
6503fb4a04
@ -19,7 +19,7 @@ exports.before = ["story"];
|
|||||||
exports.synchronous = true;
|
exports.synchronous = true;
|
||||||
|
|
||||||
exports.startup = function() {
|
exports.startup = function() {
|
||||||
console.log(`Initialising MWSS`)
|
console.log(`Initialising MWS`)
|
||||||
var path = require("path");
|
var path = require("path");
|
||||||
// Install the sqlite3 global namespace
|
// Install the sqlite3 global namespace
|
||||||
$tw.sqlite3 = {
|
$tw.sqlite3 = {
|
||||||
@ -51,6 +51,8 @@ console.log(`Initialised sqlTiddlerStore`)
|
|||||||
store: store,
|
store: store,
|
||||||
uploadManager: uploadManager
|
uploadManager: uploadManager
|
||||||
};
|
};
|
||||||
|
// Performance timing
|
||||||
|
console.time("mws-initial-load");
|
||||||
// Create docs bag and recipe
|
// Create docs bag and recipe
|
||||||
$tw.mws.store.createBag("docs","TiddlyWiki Documentation from https://tiddlywiki.com/");
|
$tw.mws.store.createBag("docs","TiddlyWiki Documentation from https://tiddlywiki.com/");
|
||||||
$tw.mws.store.createRecipe("docs",["docs"],"TiddlyWiki Documentation from https://tiddlywiki.com/");
|
$tw.mws.store.createRecipe("docs",["docs"],"TiddlyWiki Documentation from https://tiddlywiki.com/");
|
||||||
@ -70,6 +72,7 @@ console.log(`Initialised sqlTiddlerStore`)
|
|||||||
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Alpha"},"bag-alpha");
|
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Alpha"},"bag-alpha");
|
||||||
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Beta"},"bag-beta");
|
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Beta"},"bag-beta");
|
||||||
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Gamma"},"bag-gamma");
|
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Gamma"},"bag-gamma");
|
||||||
|
console.timeEnd("mws-initial-load");
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user