From 157bd150fd648dccf26466a7c4b8b90c5bb6bdb2 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 9 Nov 2013 18:55:24 +0100 Subject: APIDump: Added logging to see what takes so long. --- MCServer/Plugins/APIDump/main.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'MCServer/Plugins/APIDump') diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index a9cdf143b..d84926b53 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -198,11 +198,13 @@ end function DumpAPIHtml() LOG("Dumping all available functions and constants to API subfolder..."); + LOG("Creating API tables..."); local API, Globals = CreateAPITables(); local Hooks = {}; local UndocumentedHooks = {}; -- Sort the classes by name: + LOG("Sorting..."); table.sort(API, function (c1, c2) return (string.lower(c1.Name) < string.lower(c2.Name)); @@ -233,6 +235,7 @@ function DumpAPIHtml() ); -- Read in the descriptions: + LOG("Reading descriptions..."); ReadDescriptions(API); ReadHooks(Hooks); @@ -243,6 +246,7 @@ function DumpAPIHtml() -- Create a "class index" file, write each class as a link to that file, -- then dump class contents into class-specific file + LOG("Writing HTML files..."); local f = io.open("API/index.html", "w"); if (f == nil) then LOGINFO("Cannot output HTML API: " .. err); @@ -335,6 +339,7 @@ function DumpAPIHtml() cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js"); -- List the documentation problems: + LOG("Listing leftovers..."); ListUndocumentedObjects(API, UndocumentedHooks); ListUnexportedObjects(); ListMissingPages(); -- cgit v1.2.3