]Monitor and MiServer

MiServer is Dyalog's APL-based web development framework

]Monitor and MiServer

Postby ray on Sun Jun 21, 2015 4:00 pm

Hi

I would like to run the Monitor user command the Render and APLJax (and sub function).

I have tried inserting
      ⎕SE.UCMD 'monitor -on'
into Render but this fails
      151* Command Execution Failed: DOMAIN ERROR
Render[5] ⎕SE.UCMD'monitor -on'


Anybody got any suggestions?
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 192
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: ]Monitor and MiServer

Postby DanB|Dyalog on Mon Jun 22, 2015 12:44 am

What are you trying to do exactly?
]monitor is/was used to set ⎕MONITOR on specific programs and report on results.
⎕MONITOR has been superseded by ⎕PROFILE and ]monitor will be soon decommissioned.
Moreover, because ⎕MONITOR (same as ⎕STOP, ⎕CR, etc.) cannot be used outside a class on its members, ]monitor is useless here (this is the DOMAIN error you are seeing).
If you still prefer to use ⎕MONITOR you can do it directly by doing (⍳99)⎕MONITOR'APLJax' INSIDE the class and query ⎕MONITOR later.
DanB|Dyalog
 

Re: ]Monitor and MiServer

Postby ray on Mon Jun 22, 2015 3:01 pm

Hi Dan, thanks for the reply.

I had forgotten that Monitor was being replaced by Profile. (I am used to using ⎕MONITOR from my STSC mainframe days!)

I wanted to analysis my code that is being called at the "Render" stage because, quite frequently,the browser (connecting via 127.0.0.1) simply does not receive any response from MiServer, and so remains "blank".

I assume this is because my Render code is too slow and simply does not respond quickly enough. (I can see that it is running as I log the server side progress of Render.)

I have two rules on optimization, 1) Don't; 2) Do it later. However, now is later!

Currently Render is creating an SVG file with over 20,000 named polygons and passing that to the client along with the postscript and HTML.

I thought using Monitor would help me pinpoint where the time was being accumulated.

However, I am now considering moving a lot of the "heavy lifting" out of Render, and embedding the SVG file via the first APLJax call that is being made.

Thanks again for the feedback.
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 192
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK


Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest