Skip to content

Commit

Permalink
Change license
Browse files Browse the repository at this point in the history
  • Loading branch information
NoiseByNorthwest committed Sep 19, 2018
1 parent 7ec8f7d commit 75be219
Show file tree
Hide file tree
Showing 45 changed files with 1,461 additions and 16 deletions.
685 changes: 669 additions & 16 deletions LICENSE

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/web-ui/js/dataTable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/



export function makeDataTable(containerId, options, rows) {
let sort_col = 0;
Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/fmt.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/



import {round} from './?SPX_UI_URI=/js/math.js';

Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/math.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/



export function round(n, d) {
const scale = Math.pow(10, d || 0);
Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/profileData.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


import * as utils from './?SPX_UI_URI=/js/utils.js';
import * as fmt from './?SPX_UI_URI=/js/fmt.js';
import * as math from './?SPX_UI_URI=/js/math.js';
Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/svg.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/



export function createNode(name, attributes, builder) {
let node = document.createElementNS("http://www.w3.org/2000/svg", name);
Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


import * as math from './?SPX_UI_URI=/js/math.js';

export function getCookieVar(name) {
Expand Down
18 changes: 18 additions & 0 deletions assets/web-ui/js/widget.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


import * as utils from './?SPX_UI_URI=/js/utils.js';
import * as fmt from './?SPX_UI_URI=/js/fmt.js';
import * as math from './?SPX_UI_URI=/js/math.js';
Expand Down
18 changes: 18 additions & 0 deletions src/php_spx.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <stdio.h>
#include <unistd.h>

Expand Down
18 changes: 18 additions & 0 deletions src/php_spx.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
Expand Down
18 changes: 18 additions & 0 deletions src/spx_config.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
Expand Down
18 changes: 18 additions & 0 deletions src/spx_config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#ifndef SPX_CONFIG_H_DEFINED
#define SPX_CONFIG_H_DEFINED

Expand Down
18 changes: 18 additions & 0 deletions src/spx_fmt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <stdio.h>
#include <stdlib.h>

Expand Down
18 changes: 18 additions & 0 deletions src/spx_fmt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#ifndef SPX_FMT_H_DEFINED
#define SPX_FMT_H_DEFINED

Expand Down
18 changes: 18 additions & 0 deletions src/spx_hmap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <stdio.h>
#include <stdlib.h>

Expand Down
18 changes: 18 additions & 0 deletions src/spx_hmap.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#ifndef SPX_HMAP_H_DEFINED
#define SPX_HMAP_H_DEFINED

Expand Down
18 changes: 18 additions & 0 deletions src/spx_metric.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#include <string.h>
#include <stdlib.h>

Expand Down
18 changes: 18 additions & 0 deletions src/spx_metric.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#ifndef SPX_METRIC_H_DEFINED
#define SPX_METRIC_H_DEFINED

Expand Down
18 changes: 18 additions & 0 deletions src/spx_output_stream.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* SPX - A simple profiler for PHP
* Copyright (C) 2018 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/


#define _GNU_SOURCE /* vasprintf */
#include <stdio.h>
#include <stdlib.h>
Expand Down
Loading

0 comments on commit 75be219

Please sign in to comment.