Re: [Gambas-user] Missing data from Process_Read()
> In Process_Read(), why do you write that the ReadLine() method does not > work, > whereas it does exactly the same thing as "Line Input"? > You didn't try to uncomment it? With some earlier revision, it gave strings like "something here\nsomething more", while "Line Input #RunProject, sLine" gave them correctly without "\n". This was under investigation and now when I tried to reproduce the problem, I got "broken pipe" and signal 11. With some sources just signal 11. Gambas 3 rev 3639 @ Ubuntu 10.10 64bit > Otherwise, you are running the project with the Shell. Use Exec instead, > the > behavour may be better. Shell may create a buffered stream between your > project and the profiled project. That would explain why you lose data. > Tried... but no luck. I attached new version of profiler. Now using exec and it doesn't waste memory anymore. Jussi BTW, by "unconventional" I meant "inconvenient", but I think that was obvious to everyone who tried it. Profiler-0.0.14.tar.gz Description: GNU Zip compressed data -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing data from Process_Read()
There is "Make code pretty" feature! ;) Jussi 2011/3/6 Benoît Minisini > > Hi! > > I'm still working with my experimental profiler. > > It is unconventional and slow (for big projects, very slow), but it seems > > to work (not tested well) if you record whole run (or end of run) of the > > profiled program. > > > > However if you stop recording data before you close profiled program, you > > will lose some data. > > It will never arrive to Process_Read(). > > > > So any ideas where that data is lost and how to prevent it? > > Sources attached. > > > > Jussi > > P.S If you run profiler from IDE you may get less accurate results. > > By not correctly indenting your code, you make it very difficult to read... > > -- > Benoît Minisini > > > -- > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing data from Process_Read()
> Hi! > I'm still working with my experimental profiler. > It is unconventional and slow (for big projects, very slow), but it seems > to work (not tested well) if you record whole run (or end of run) of the > profiled program. > > However if you stop recording data before you close profiled program, you > will lose some data. > It will never arrive to Process_Read(). > > So any ideas where that data is lost and how to prevent it? > Sources attached. > > Jussi > P.S If you run profiler from IDE you may get less accurate results. In Process_Read(), why do you write that the ReadLine() method does not work, whereas it does exactly the same thing as "Line Input"? Otherwise, you are running the project with the Shell. Use Exec instead, the behavour may be better. Shell may create a buffered stream between your project and the profiled project. That would explain why you lose data. Regards, -- Benoît Minisini -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing data from Process_Read()
> Hi! > I'm still working with my experimental profiler. > It is unconventional and slow (for big projects, very slow), but it seems > to work (not tested well) if you record whole run (or end of run) of the > profiled program. > > However if you stop recording data before you close profiled program, you > will lose some data. > It will never arrive to Process_Read(). > > So any ideas where that data is lost and how to prevent it? > Sources attached. > > Jussi > P.S If you run profiler from IDE you may get less accurate results. By not correctly indenting your code, you make it very difficult to read... -- Benoît Minisini -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Missing data from Process_Read()
Hi! I'm still working with my experimental profiler. It is unconventional and slow (for big projects, very slow), but it seems to work (not tested well) if you record whole run (or end of run) of the profiled program. However if you stop recording data before you close profiled program, you will lose some data. It will never arrive to Process_Read(). So any ideas where that data is lost and how to prevent it? Sources attached. Jussi P.S If you run profiler from IDE you may get less accurate results. Profiler-0.0.13.tar.gz Description: GNU Zip compressed data -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user