mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-05 23:10:28 +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.startup = function() {
|
||||
console.log(`Initialising MWSS`)
|
||||
console.log(`Initialising MWS`)
|
||||
var path = require("path");
|
||||
// Install the sqlite3 global namespace
|
||||
$tw.sqlite3 = {
|
||||
@ -51,6 +51,8 @@ console.log(`Initialised sqlTiddlerStore`)
|
||||
store: store,
|
||||
uploadManager: uploadManager
|
||||
};
|
||||
// Performance timing
|
||||
console.time("mws-initial-load");
|
||||
// Create docs bag and recipe
|
||||
$tw.mws.store.createBag("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 Beta"},"bag-beta");
|
||||
$tw.mws.store.saveBagTiddler({title: "$:/SiteTitle",text: "Bag Gamma"},"bag-gamma");
|
||||
console.timeEnd("mws-initial-load");
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user