Skip to content
Commits on Jul 19, 2010
  1. Add a small run.sh script to test the extension

    committed
    The run.sh script can be used to start the php with the extension
    loaded. It needs to be run from the source directory.
    
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
Commits on Jun 16, 2010
  1. Refactor OS abstraction

    committed
    We use a small structure with func pointers to get a better OS abstraction.
    So each system can provide their own structure. At the moment we just need
    one function, so there is no need to have separate initialization code.
    
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  2. Fixes

    committed
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
Commits on Jun 11, 2010
  1. Linux implementation

    committed
    On linux we use the clock_* calls to get accurate information about the cputime.
    Still we need to bind our CPU.
    
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  2. Use lround to round the double to an integer

    committed
    We should not rely on casting doubles to integers, but rather
    use a proper round from math.h to round our double to an integer.
    
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  3. Add a more accurate cputime count based on xhprofs implementation

    committed
    We use the xhprof implementation cycle_time to get the cputime. This
    reads the RTDSC register and calculates the elapsed time based on the
    current CPU frequency. This requires the process to be bound to a CPU,
    otherwise the OS might preempt our process and migrate it to another CPU.
    As CPU's do not start up at the very same moment, the clock counts usually
    differ from cpu to cpu, leading to incorrect results.
    
    Please note that this implementation might return wrong values on CPU
    with speed stepping.
    
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  4. Indention

    committed
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  5. Remove unecessary files

    committed
    Signed-off-by: David Soria Parra <david.soria_parra@mayflower.de>
  6. remove artifacts

    Mayflower GmbH committed with
  7. first commit

    Mayflower GmbH committed with
  8. Initial Commit

    committed
Something went wrong with that request. Please try again.