Coder Social home page Coder Social logo

werner / ocean-sql-profiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dantheman213/ocean-sql-profiler

0.0 3.0 0.0 74 KB

Cross-platform SQL profiler for Postgres / PostgreSQL 9.3+. View your queries and functions being run in real-time in a simple to use GUI.

License: GNU General Public License v3.0

C# 100.00%

ocean-sql-profiler's Introduction

icon

Ocean SQL Profiler

Cross-platform SQL profiler for PostgreSQL 9.3+. View your queries and functions being run in real-time in a simple to use GUI.

screenshot

Features

  • View your PostgresSQL functions and queries being executed in real-time GUI
  • ...more to come! Feel free to contribute. Look below for more info.

Setup Postgres Statement Log

  • Locate where your PostgreSQL configuration files are
  • Edit your postgresql.conf file with the following:
log_directory = 'pg_log'                    
log_filename = 'postgresql-commands.log
log_statement = 'all'
logging_collector = on
  • Restart PostgreSQL
  • Find where the pg_log directory is and where the newly made 'commands' LOG file has been created
  • If examining a log on a remote server, virtual machine, vagrant/docker install you will need to mount the log file locally and then select it as a local file.
  • Begin using the monitoring tool!

Building on Windows

This should run on Visual Studio 2015+ and build without any problems.

Building on Linux

  • Install Mono libraries
sudo su
apt-get install mono-complete mono-xbuild
  • Clone the project, cd into the working directory, and build it:
xbuild /p:TargetFrameworkVersion="v4.5" /p:Configuration=Release /p:DebugSymbols=False Ocean.csproj

And here it is running on Ubuntu 16.04 Desktop: screenshot_linux

Building on MacOS

I haven't tried yet! Help me clarify the documentation, if you can. This should build perfectly fine using the Mono build tools. Learn more about Mono's xbuild tool, equivalent to Microsoft's msbuild tool, here:

http://www.mono-project.com/docs/tools+libraries/tools/xbuild/

Contributing

This is a small project for me. If you'd like to help improve this and turn it into a full application or just add some new features --please feel free to submit a pull request.

Thanks!

ocean-sql-profiler's People

Watchers

Werner Echezuría avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.