diff --git a/file.go b/file.go index ba92701..a9420c7 100644 --- a/file.go +++ b/file.go @@ -151,6 +151,8 @@ func convertBlocksToListItems(current string, blocks BlockResponse, indent int) } func (fp *FilePages) Get(title string) Page { + var sw stopwatch + sw.Start("Get " + title) // TODO: cleanup loading of pages // TODO: convert all pages to blocks name := title @@ -206,6 +208,8 @@ func (fp *FilePages) Get(title string) Page { err = json.NewEncoder(&buf).Encode(&listItems) + sw.Stop() + return Page{ Name: name, Title: blocks.Texts[name],