incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McDaniel <couch...@autosys.us>
Subject Re: View Performance (was Re: The 1.0 Thread)
Date Thu, 09 Jul 2009 23:04:52 GMT
On Fri, Jul 10, 2009 at 01:31:09AM +0300, Dmitry Unkovsky wrote:
> Seems like It's up now.
> I did it against v.0.9.0 couch_query_servers.erl as current
> get_os_process is a bit bigger than that one-liner in 0.9.0.
> How do I run tests?
> comment in erlview_test.erl says
> %%% Currently needs to be run from within an interactive couchdb
> %%% session.
> and no mention at README
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 couchdb -i

  ...

 1> eunit:test(erlview).



 You can point your browser to

    file:///path/where/you/installed/erlview/doc/index.html
 
 to see the fun examples.

 If you installed correctly, you can use Futon and choose
 language erlang in the dropdown when you choose Temporary
 View.  Both javascript and erlang should be available.

 Note in the README that there are known problems.  And it
 was last tested against an older version of CouchDB.

 A few people have cloned it from git but I have seen little
 work done to fix the known problems or otherwise upgrade it.
 As I stated previously, I got stuck and needed help.  
 See README.


~M
P.S. and, github is fine, I cannot find a password I need
     to 'git push' ...


> 
> 2009/7/10 Michael McDaniel <couchdby@autosys.us>:
> >
> >  I currently cannot push to git but here's what to do ...
> >
> >  edit erlview.erl
> >
> >  * add     -define(VERSION, "unknown").
> >  * change  helper/2  to  helper/3
> >  * save file
> >  * erl -make
> >
> >  You will need to read the README and make local.ini adjustments.
> >  You have already adjusted include path in Emakefile.
> >  Maybe use the most current couch_query_servers.erl rather than
> >  the old one included.  And copy the .beam files.  Should all be
> >  in the README.
> >
> > ~M
> >
> >
> > On Thu, Jul 09, 2009 at 10:48:19PM +0300, Dmitry Unkovsky wrote:
> >> Thank you for a hint!
> >> I was running make instead of erl -make, which tries to build docs
> >> also, as far as I understand.
> >>
> >> Now, doing plain -
> >>
> >> cd /tmp
> >> git clone git://github.com/mmcdanie/erlview.git
> >> cd erlview
> >> rm ebin/*
> >> cd src
> >> erl -make
> >>
> >> of course tells me that couch_db.hrl is not found,
> >> and after adjusting path to it in Emakefile
> >>
> >> /tmp/erlview/src$ erl -make
> >> Recompile: erlview
> >> ./erlview.erl:233: undefined macro ''VERSION''
> >> ./erlview.erl:217: function helper/2 undefined
> >> ./erlview.erl:218: function version/0 undefined
> >> ./erlview.erl:326: Warning: function helper/3 is unused
> >>
> >> that's on Ubuntu 9.04something, if relevant,
> >> $erl +V
> >> Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.6.5
> >>
> >> and latest couchdb from git://github.com/halorgium/couchdb.git master
> >> (at 14cae6402ed... now)
> >> the same with couchdb tagged v0.9.0
> >>
> >>
> >> 2009/7/9 Michael McDaniel <couchdy@autosys.us>:
> >> >
> >> >   cd /tmp
> >> >   git clone  git://github.com/mmcdanie/erlview.git
> >> >   cd erlview
> >> >   cd src
> >> >   erl -make
> >> >   ls -l ../ebin
> >
> > --
> > Michael McDaniel
> > Portland, Oregon, USA
> > http://autosys.us
> >
> >

Mime
View raw message